{"openapi":"3.1.0","info":{"title":"RTKdata API v2","version":"2.0.0-preview","description":"The API of your RTKdata account. Timestamps are YYYY-MM-DDTHH:mm:ssZ in UTC. Errors are documented at https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors.","x-account-kind":"enterprise"},"externalDocs":{"url":"https://docs.rtkdata.com/enterprise-portal/api/api-guide"},"servers":[{"url":"/"}],"tags":[{"name":"Meta","description":"What the API offers before you buy anything: the version, the products with their term and seat rules, the mountpoints, the casters, the network coverage at a point and this document."},{"name":"Account","description":"Your account: its details, its own products and prices, its support agreement, what it may buy at its stage, the activity feed and the team members. Changing the company and contact details is a request RTKdata decides; it is live only."},{"name":"Licenses","description":"The NTRIP logins of your account, devices (one stream) and fleets (cut from a contingent): buy devices at your products or the standard terms, extend, convert trial devices, suspend, end, archive, read credentials, check connection diagnostics and group them with your own tags."},{"name":"Devices","description":"Hardware that signs itself in (not a device login of the Licenses area): a claim code lets a receiver take one slot of a device or fleet login, then it trades its client credentials for a short-lived device token."},{"name":"Contingents","description":"An enterprise account's stream contingents: buy streams for a term, cut fleets (one login, several streams) from them, move streams between fleets, renew, top up, and turn trial fleets into bought ones."},{"name":"Quotes from RTKdata","description":"Quotes from RTKdata: ask for one, read what RTKdata released, order it with your PO number or decline it. Not POST /v2/quotes, which previews a price. Live only: a test key reads an empty list and changes nothing. Each step is an event (sales_quote.*), once the quote is yours to see."},{"name":"Bulk operations","description":"Many devices or fleets in one order, made in the background: follow the order, retry what failed, and read the new logins in one call."},{"name":"Grants","description":"The purchase ledger: every purchase with its frozen price, the lines behind each bill and the bill still running."},{"name":"Bills","description":"Your monthly bills from RTKdata: list and read them, their lines, the PDF, the running month so far and a roll-up of what is outstanding."},{"name":"Support","description":"Your support tickets with RTKdata: open one, escalate a license's problem, ask about a bill, follow the thread, answer with screenshots and close it. Live only: a test key reads an empty list and changes nothing. Each step is an event (ticket.*), whoever took it; lastMessageSince finds what moved when polling."},{"name":"Documents","description":"The files RTKdata shared with your account, such as contracts: list them and fetch a short-lived download link. Read only, and live only: a test key reads an empty list. Sharing one and taking one back are events (document.*)."},{"name":"Events","description":"Everything that happened to your devices, fleets, contingents, bills and integration, as one ordered feed you can read at your own pace."},{"name":"Webhooks","description":"Endpoints in your own systems that receive events as signed POSTs: register and change them, read the delivery log, retry a delivery, send a test ping and roll the signing secret."},{"name":"API keys","description":"The keys that call this API: create them with scopes, expiry, IP allowlist and rate limit tier, rotate or revoke them, see their usage and look up any call in the request log."},{"name":"Stats","description":"Ready-made roll-ups for dashboards: devices and fleets, trials, usage, sessions and API calls, as totals and as trends over time."},{"name":"Sessions","description":"Connections of your licenses to the caster: the history of the last 30 days, the live connections with their position and the recorded track of a session."},{"name":"Notifications","description":"The account's inbox as the portal shows it under the bell: read, mark and remove notifications and choose which event reaches which channel."},{"name":"Sandbox","description":"Tools for test keys only: move a test license through time, record a fake connection and preview the bill a period would produce."}],"paths":{"/v2/meta":{"get":{"operationId":"getMeta","summary":"Version descriptor","tags":["Meta"],"security":[],"responses":{"200":{"description":"Version descriptor","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","const":"v2"},"status":{"type":"string","enum":["preview","stable","deprecated"]},"deprecation":{"type":["string","null"]},"sunset":{"type":["string","null"]},"timestampFormat":{"type":"string"},"docsUrl":{"type":"string"},"openApiUrl":{"type":"string"}},"required":["version","status","deprecation","sunset","timestampFormat","docsUrl","openApiUrl"],"additionalProperties":false}}}}}}},"/v2/products":{"get":{"operationId":"listProducts","summary":"The standard products, with the term, trial and seat rules a purchase is validated against; your own products are GET /v2/account/products","tags":["Meta"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"The standard products, with the term, trial and seat rules a purchase is validated against; your own products are GET /v2/account/products","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["ntrip_license"]},"name":{"type":"string"},"description":{"type":"string"},"kinds":{"type":"array","items":{"type":"string","enum":["trial","paid"]}},"trial":{"type":"object","properties":{"days":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days","seats"],"additionalProperties":false},"terms":{"type":"object","properties":{"oneOf":{"type":"array","items":{"type":"string","enum":["months","days","expiresAt"]}},"months":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"days":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"expiresAtDays":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false}},"required":["oneOf","months","days","expiresAtDays"],"additionalProperties":false},"seats":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"pricing":{"type":"object","properties":{"basis":{"type":"string","const":"per_seat"},"annualRateMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ratesUrl":{"type":"string"}},"required":["basis","annualRateMonths","ratesUrl"],"additionalProperties":false},"mountpoints":{"type":"array","items":{"type":"string"}},"defaultMountpoint":{"type":"string"}},"required":["id","name","description","kinds","trial","terms","seats","pricing","mountpoints","defaultMountpoint"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/mountpoints":{"get":{"operationId":"listMountpoints","summary":"The mountpoints every login serves and the frame each resolves to","tags":["Meta"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"The mountpoints every login serves and the frame each resolves to","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"},"resolution":{"type":"string","enum":["by_rover_location","fixed"]},"frame":{"type":"string"}},"required":["name","default","resolution","frame"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/casters":{"get":{"operationId":"listCasters","summary":"The caster the credentials name, with its host, port and the GGA position rule","tags":["Meta"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"The caster the credentials name, with its host, port and the GGA position rule","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["rtkdata"]},"name":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"default":{"type":"boolean"},"mountpoints":{"type":"array","items":{"type":"string"}},"position":{"type":"object","properties":{"ggaRequired":{"type":"boolean"},"deadlineSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ggaRequired","deadlineSeconds"],"additionalProperties":false}},"required":["id","name","host","port","default","mountpoints","position"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/coverage":{"get":{"operationId":"getCoverage","summary":"Whether RTK corrections reach a point (lat, lng in WGS84 degrees): precise within 25 km of a base station (typically about 2 cm), standard within 100 km (typically about 10 cm), none outside both; the same for every caster and environment","tags":["Meta"],"security":[{"apiKey":[]}],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180}}],"responses":{"200":{"description":"Whether RTK corrections reach a point (lat, lng in WGS84 degrees): precise within 25 km of a base station (typically about 2 cm), standard within 100 km (typically about 10 cm), none outside both; the same for every caster and environment","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"covered":{"type":"boolean"},"level":{"type":"string","enum":["precise","standard","none"]},"zoneKm":{"type":["number","null"]},"revision":{"type":"string"},"generatedAt":{"type":"string"}},"required":["covered","level","zoneKm","revision","generatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"coverage_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","tags":["Meta"],"security":[],"responses":{"200":{"description":"This document","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}}}}}},"/v2/account":{"get":{"operationId":"getAccount","summary":"The calling account","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"The calling account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["enterprise"]},"currency":{"type":"string","minLength":3,"maxLength":3},"paymentTermDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"trialDaysAllowed":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"pastDue":{"type":"boolean"},"stage":{"type":"string","enum":["current","reminder","credit_hold","renewals_blocked","service_cut"]},"environment":{"type":"string","enum":["test","live"]}},"required":["kind","currency","paymentTermDays","trialDaysAllowed","pastDue","stage","environment"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/pricing":{"get":{"operationId":"getAccountPricing","summary":"The prices as in effect now (a purchase freezes its price in its grant)","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"The prices as in effect now (a purchase freezes its price in its grant)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"billingCurrency":{"type":"string","minLength":3,"maxLength":3,"description":"The currency RTKdata invoices this account in. Prices are kept in USD, every money value names its own currency; a bill converts at the ECB reference rate of its billing day."},"priceList":{"anyOf":[{"type":"object","properties":{"version":{"type":"string"},"effectiveFrom":{"type":"string"}},"required":["version","effectiveFrom"],"additionalProperties":false},{"type":"null"}]},"perSeat":{"type":"object","properties":{"annual":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"monthly":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["annual","monthly"],"additionalProperties":false},"discount":{"type":"object","properties":{"model":{"type":"string","enum":["tiered","flat"]},"rate":{"type":"number","minimum":0,"maximum":1},"tier":{"anyOf":[{"type":"string","enum":["tier_1","tier_2","tier_3"]},{"type":"null"}]},"activeLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"next":{"anyOf":[{"type":"object","properties":{"tier":{"type":"string","enum":["tier_1","tier_2","tier_3"]},"minLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","minLicenses","rate"],"additionalProperties":false},{"type":"null"}]}},"required":["model","rate","tier","activeLicenses","next"],"additionalProperties":false},"asOf":{"type":"string"}},"required":["billingCurrency","priceList","perSeat","discount","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/capabilities":{"get":{"operationId":"getAccountCapabilities","summary":"What the account may buy at its stage, the dunning staircase and the purchase limits","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"What the account may buy at its stage, the dunning staircase and the purchase limits","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string","enum":["test","live"]},"stage":{"type":"string","enum":["current","reminder","credit_hold","renewals_blocked","service_cut"]},"pastDue":{"type":"boolean"},"purchases":{"type":"object","properties":{"allowed":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}},"refused":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}}},"required":["allowed","refused"],"additionalProperties":false},"refusedWith":{"anyOf":[{"type":"string","const":"account_past_due"},{"type":"null"}]},"stages":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["current","reminder","credit_hold","renewals_blocked","service_cut"]},"fromDaysOverdue":{"type":"integer","minimum":0,"maximum":9007199254740991},"refuses":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}},"decidedByRtkdata":{"type":"boolean"}},"required":["stage","fromDaysOverdue","refuses","decidedByRtkdata"],"additionalProperties":false}},"limits":{"type":"object","properties":{"months":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"days":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"trialDays":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"seats":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"amounts":{"type":"object","properties":{"maxPerCall":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maxUnbilled":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unbilled":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"maxStorable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["maxPerCall","maxUnbilled","unbilled","maxStorable"],"additionalProperties":false}},"required":["months","days","trialDays","seats","amounts"],"additionalProperties":false},"credentialTypes":{"anyOf":[{"type":"object","properties":{"allowed":{"type":"array","items":{"type":"string","enum":["device","fleet"]}},"refused":{"type":"array","items":{"type":"string","enum":["device","fleet"]}}},"required":["allowed","refused"],"additionalProperties":false},{"type":"null"}],"x-account-kinds":["enterprise"]},"apiKeys":{"type":"object","properties":{"rateLimitTierCeiling":{"type":"string","enum":["standard","elevated","high"]},"rateLimitTiers":{"type":"array","items":{"type":"string","enum":["standard","elevated","high"]}}},"required":["rateLimitTierCeiling","rateLimitTiers"],"additionalProperties":false}},"required":["environment","stage","pastDue","purchases","refusedWith","stages","limits","credentialTypes","apiKeys"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/sla":{"get":{"operationId":"getAccountSla","summary":"The support agreement RTKdata recorded for the account, null while there is none (the same for a test key, an agreement is not an environment's)","tags":["Account"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"The support agreement RTKdata recorded for the account, null while there is none (the same for a test key, an agreement is not an environment's)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"sla":{"anyOf":[{"type":"object","properties":{"coverage":{"type":"string","enum":["around_the_clock","business_hours"]},"severities":{"type":"array","items":{"type":"object","properties":{"severity":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["severity","responseTimeHours","resolutionTimeHours"],"additionalProperties":false}},"notes":{"type":["string","null"]}},"required":["coverage","severities","notes"],"additionalProperties":false},{"type":"null"}]}},"required":["sla"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/profile":{"get":{"operationId":"getAccountProfile","summary":"The company and contact details, and the VAT details RTKdata keeps (the same for a test key, they are the account's)","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"The company and contact details, and the VAT details RTKdata keeps (the same for a test key, they are the account's)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false},"vatNumber":{"type":["string","null"]},"vatTreatment":{"type":["string","null"]}},"required":["companyName","contactName","email","billingEmail","phone","address","vatNumber","vatTreatment"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/profile-change-requests":{"post":{"operationId":"requestProfileChange","summary":"Ask RTKdata to change the company and contact details: send them whole, as they should read. Nothing changes until RTKdata approved, one request can be open at a time","tags":["Account"],"security":[{"apiKey":["account:write"]}],"x-scope":"account:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyName":{"type":"string","minLength":1,"maxLength":200},"contactName":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"billingEmail":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}]},"address":{"type":"object","properties":{"street":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"city":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false}}}},"responses":{"201":{"description":"Ask RTKdata to change the company and contact details: send them whole, as they should read. Nothing changes until RTKdata approved, one request can be open at a time","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pcr_[0-9a-f]{32}$"},"requested":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"before":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"status":{"type":"string","enum":["pending","approved","rejected"]},"decisionReason":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"submittedAt":{"type":"string"}},"required":["id","requested","before","status","decisionReason","decidedAt","submittedAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listProfileChangeRequests","summary":"The account's profile change requests, newest first","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","approved","rejected"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's profile change requests, newest first","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^pcr_[0-9a-f]{32}$"},"requested":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"before":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"status":{"type":"string","enum":["pending","approved","rejected"]},"decisionReason":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"submittedAt":{"type":"string"}},"required":["id","requested","before","status","decisionReason","decidedAt","submittedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/profile-change-requests/{id}":{"get":{"operationId":"getProfileChangeRequest","summary":"Read a profile change request and its decision","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a profile change request and its decision","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pcr_[0-9a-f]{32}$"},"requested":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"before":{"type":"object","properties":{"companyName":{"type":"string"},"contactName":{"type":["string","null"]},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["street","city","postalCode","country"],"additionalProperties":false}},"required":["companyName","contactName","email","phone","address"],"additionalProperties":false},"status":{"type":"string","enum":["pending","approved","rejected"]},"decisionReason":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"submittedAt":{"type":"string"}},"required":["id","requested","before","status","decisionReason","decidedAt","submittedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"profile_change_request_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/setup":{"get":{"operationId":"getAccountSetup","summary":"Whether the account finished its setup in the portal: ready, or not ready and refusing what provisions with setup_incomplete (the same for a test key)","tags":["Account"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","responses":{"200":{"description":"Whether the account finished its setup in the portal: ready, or not ready and refusing what provisions with setup_incomplete (the same for a test key)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready","not_ready"]}},"required":["status"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/products":{"get":{"operationId":"listAccountProducts","summary":"Your account's own products, fixed prices agreed with RTKdata for a device or a fleet stream (empty for a test key, products are live terms only; archived and expired ones included unless a status is asked for)","tags":["Account"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","expired","archived"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["device","fleet"]}}],"responses":{"200":{"description":"Your account's own products, fixed prices agreed with RTKdata for a device or a fleet stream (empty for a test key, products are live terms only; archived and expired ones included unless a status is asked for)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"name":{"type":"string"},"type":{"type":"string","enum":["device","fleet"]},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"status":{"type":"string","enum":["active","expired","archived"]},"sellableUntil":{"type":["string","null"]},"archivedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","type","termMonths","price","status","sellableUntil","archivedAt","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/account/products/{id}":{"get":{"operationId":"getAccountProduct","summary":"Read one of the account's products, also one a license was bought with that is no longer available","tags":["Account"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read one of the account's products, also one a license was bought with that is no longer available","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"name":{"type":"string"},"type":{"type":"string","enum":["device","fleet"]},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"status":{"type":"string","enum":["active","expired","archived"]},"sellableUntil":{"type":["string","null"]},"archivedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","type","termMonths","price","status","sellableUntil","archivedAt","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"product_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/activity":{"get":{"operationId":"listActivity","summary":"The account's activity feed, newest first: the lifecycle and billing moments the portal's dashboard shows (empty for a test key)","tags":["Account"],"security":[{"apiKey":["account:read"]}],"x-scope":"account:read","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["license_provisioned","license_renewed","license_suspended","license_upgraded","license_changed","license_expired","trial_started","trial_converted","invoice_generated","invoice_paid","credit_warning","credential_reset"]}},{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"occurredSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"occurredBefore","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's activity feed, newest first: the lifecycle and billing moments the portal's dashboard shows (empty for a test key)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^act_[0-9a-f]{32}$"},"type":{"type":"string","enum":["license_provisioned","license_renewed","license_suspended","license_upgraded","license_changed","license_expired","trial_started","trial_converted","invoice_generated","invoice_paid","credit_warning","credential_reset","customer_login"]},"message":{"type":"string"},"detail":{"type":["string","null"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"occurredAt":{"type":"string"}},"required":["id","type","message","detail","licenseId","occurredAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/members":{"get":{"operationId":"listMembers","summary":"The account's team, oldest first: who has joined and who is invited (the same for a test key, a team is not an environment's)","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","invited","expired"]}},{"name":"role","in":"query","required":false,"schema":{"type":"string","enum":["admin","user"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's team, oldest first: who has joined and who is invited (the same for a test key, a team is not an environment's)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^mem_[0-9a-f]{32}$"},"email":{"type":["string","null"]},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","invited","expired"]},"joinedAt":{"type":["string","null"]},"inviteExpiresAt":{"type":["string","null"]},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"anyOf":[{"type":"string","enum":["owner","admin","billing","member","viewer"]},{"type":"null"}]}},"required":["id","email","role","status","joinedAt","inviteExpiresAt","createdAt","permissions","preset"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/members/presets":{"get":{"operationId":"listMemberPresets","summary":"The permission presets a member can be given, with their keys and the role they stand for","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","responses":{"200":{"description":"The permission presets a member can be given, with their keys and the role they stand for","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["owner","admin","billing","member","viewer"]},"label":{"type":"string"},"role":{"type":"string","enum":["admin","user"]},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}}},"required":["id","label","role","permissions"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/members/invites":{"post":{"operationId":"inviteMember","summary":"Invite a person to the account by email (the portal mails the invite, valid 7 days) with a role, permissions or a preset; a user unless one is given","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["admin","user"]},"permissions":{"minItems":1,"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"type":"string","enum":["owner","admin","billing","member","viewer"]}},"required":["email"],"additionalProperties":false}}}},"responses":{"201":{"description":"Invite a person to the account by email (the portal mails the invite, valid 7 days) with a role, permissions or a preset; a user unless one is given","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^mem_[0-9a-f]{32}$"},"email":{"type":["string","null"]},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","invited","expired"]},"joinedAt":{"type":["string","null"]},"inviteExpiresAt":{"type":["string","null"]},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"anyOf":[{"type":"string","enum":["owner","admin","billing","member","viewer"]},{"type":"null"}]}},"required":["id","email","role","status","joinedAt","inviteExpiresAt","createdAt","permissions","preset"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, member_already_exists","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/members/{id}":{"patch":{"operationId":"updateMember","summary":"Change what a joined member or an open invite may do: a role (its defaults, never the last admin down to user), or permissions or a preset (the role follows them)","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","user"]},"permissions":{"minItems":1,"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"type":"string","enum":["owner","admin","billing","member","viewer"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change what a joined member or an open invite may do: a role (its defaults, never the last admin down to user), or permissions or a preset (the role follows them)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^mem_[0-9a-f]{32}$"},"email":{"type":["string","null"]},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","invited","expired"]},"joinedAt":{"type":["string","null"]},"inviteExpiresAt":{"type":["string","null"]},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"anyOf":[{"type":"string","enum":["owner","admin","billing","member","viewer"]},{"type":"null"}]}},"required":["id","email","role","status","joinedAt","inviteExpiresAt","createdAt","permissions","preset"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"member_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"removeMember","summary":"Remove a joined member from the team (the portal access ends at once, never the last admin), or withdraw an open or expired invite (its link stops working at once)","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remove a joined member from the team (the portal access ends at once, never the last admin), or withdraw an open or expired invite (its link stops working at once)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^mem_[0-9a-f]{32}$"},"email":{"type":["string","null"]},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","invited","expired"]},"joinedAt":{"type":["string","null"]},"inviteExpiresAt":{"type":["string","null"]},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"anyOf":[{"type":"string","enum":["owner","admin","billing","member","viewer"]},{"type":"null"}]}},"required":["id","email","role","status","joinedAt","inviteExpiresAt","createdAt","permissions","preset"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"member_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/members/{id}/resend":{"post":{"operationId":"resendMemberInvite","summary":"Mail an open or expired invite again: a new link valid 7 days, the old one stops working (not within a minute of the last send)","tags":["Account"],"security":[{"apiKey":["members:manage"]}],"x-scope":"members:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Mail an open or expired invite again: a new link valid 7 days, the old one stops working (not within a minute of the last send)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^mem_[0-9a-f]{32}$"},"email":{"type":["string","null"]},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","invited","expired"]},"joinedAt":{"type":["string","null"]},"inviteExpiresAt":{"type":["string","null"]},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["account.dashboard.read","account.customers.read","account.customers.write","account.devices.read","account.devices.write","account.licenses.read","account.licenses.write","account.credentials.reveal","account.licenses.export","account.billing.read","account.billing.write","account.usage.read","account.api.read","account.api.write","account.api.manage","account.support.read","account.support.write","account.documents.read","account.documents.write","account.members.manage","account.settings.manage"]}},"preset":{"anyOf":[{"type":"string","enum":["owner","admin","billing","member","viewer"]},{"type":"null"}]}},"required":["id","email","role","status","joinedAt","inviteExpiresAt","createdAt","permissions","preset"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"member_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, invite_cooldown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses":{"get":{"operationId":"listLicenses","summary":"List licenses","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["trial","paid"]}},{"name":"credentialType","in":"query","required":false,"schema":{"x-account-kinds":["enterprise"],"type":"string","enum":["device","fleet"]}},{"name":"archived","in":"query","required":false,"schema":{"x-account-kinds":["enterprise"],"type":"string","enum":["true","false"]}},{"name":"productId","in":"query","required":false,"schema":{"x-account-kinds":["enterprise"],"type":"string","pattern":"^prd_[0-9a-f]{32}$"}},{"name":"contingentId","in":"query","required":false,"schema":{"x-account-kinds":["enterprise"],"type":"string","pattern":"^ctg_[0-9a-f]{32}$"}},{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}},{"name":"updatedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"expiresBefore","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List licenses","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createLicense","summary":"Create a trial or a paid license","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["trial","paid"]},"trialDays":{"anyOf":[{"type":"number","const":7},{"type":"number","const":14},{"type":"number","const":30}]},"months":{"type":"integer","minimum":1,"maximum":12},"days":{"type":"integer","minimum":30,"maximum":364},"expiresAt":{"type":"string"},"productId":{"x-account-kinds":["enterprise"],"description":"Enterprise accounts: one of your device products (GET /v2/account/products). The product sets term and price, leave months, days and expiresAt out.","type":"string","pattern":"^prd_[0-9a-f]{32}$"},"seats":{"default":1,"type":"integer","minimum":1,"maximum":100},"entitlementKey":{"type":"string","minLength":1,"maxLength":120},"autoRenew":{"default":false,"type":"boolean"},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"credentials":{"type":"object","properties":{"username":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[A-Za-z0-9._@-]+$"},"password":{"type":"string","minLength":6,"maxLength":64,"pattern":"^[\\x21-\\x7E]+$"}},"required":["username","password"],"additionalProperties":false}},"required":["kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a trial or a paid license","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"product_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, setup_incomplete, invalid_state, billing_limit_reached, trial_already_used, username_taken","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"provisioning_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown, caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}":{"get":{"operationId":"getLicense","summary":"Read a license (a device token: its own license)","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]},{"deviceToken":[]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a license (a device token: its own license)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateLicense","summary":"Change metadata or auto renew","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change metadata or auto renew","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/credentials":{"get":{"operationId":"getLicenseCredentials","summary":"Read the NTRIP credentials (a device token: of its own license)","tags":["Licenses"],"security":[{"apiKey":["credentials:read"]},{"deviceToken":[]}],"x-scope":"credentials:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read the NTRIP credentials (a device token: of its own license)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mountpoint":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"setupString":{"type":"string"}},"required":["host","port","mountpoint","username","password","setupString"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/end":{"post":{"operationId":"endLicense","summary":"End a license now","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"End a license now","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/suspend":{"post":{"operationId":"suspendLicense","summary":"Place your hold on a license","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"Place your hold on a license","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/reactivate":{"post":{"operationId":"reactivateLicense","summary":"Clear your hold on a license","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Clear your hold on a license","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, hold_by_rtkdata","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/archive":{"post":{"operationId":"archiveLicense","summary":"Archive a device or fleet of an enterprise account: the caster refuses its login, status, term, streams and bill stay (a repeat answers it unchanged)","tags":["Licenses"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Archive a device or fleet of an enterprise account: the caster refuses its login, status, term, streams and bill stay (a repeat answers it unchanged)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/unarchive":{"post":{"operationId":"unarchiveLicense","summary":"Let an archived device or fleet log in again (a fleet needs streams first)","tags":["Licenses"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Let an archived device or fleet log in again (a fleet needs streams first)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/extend":{"post":{"operationId":"extendLicense","summary":"Buy more access time","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"months":{"type":"integer","minimum":1,"maximum":12},"days":{"type":"integer","minimum":30,"maximum":364},"expiresAt":{"type":"string"},"seats":{"type":"integer","minimum":1,"maximum":100},"reinstate":{"default":false,"type":"boolean"},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Buy more access time","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, reinstate_required, not_available_for_account, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/convert":{"post":{"operationId":"convertLicense","summary":"Convert a trial to a paid license","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"months":{"type":"integer","minimum":1,"maximum":12},"days":{"type":"integer","minimum":30,"maximum":364},"expiresAt":{"type":"string"},"startsAt":{"default":"trial_end","type":"string","enum":["trial_end","now"]},"seats":{"default":1,"type":"integer","minimum":1,"maximum":100},"reinstate":{"default":false,"type":"boolean"},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Convert a trial to a paid license","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, reinstate_required, not_available_for_account, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/quotes":{"post":{"operationId":"quote","summary":"Price a purchase without making it","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["create","convert","extend","seats"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"months":{"type":"integer","minimum":1,"maximum":12},"days":{"type":"integer","minimum":30,"maximum":364},"expiresAt":{"type":"string"},"seats":{"type":"integer","minimum":1,"maximum":100},"startsAt":{"type":"string","enum":["trial_end","now"]}},"required":["action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Price a purchase without making it","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"from":{"type":"string"},"to":{"type":"string"},"billableSeats":{"type":"integer","minimum":1,"maximum":9007199254740991},"priceBasis":{"type":"string"},"priceListVersion":{"type":["string","null"]},"grants":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"priceListVersion":{"type":["string","null"]},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false}},"required":["role","baseGrantId","from","to","seats","priceListVersion","amount"],"additionalProperties":false}}},"required":["amount","from","to","billableSeats","priceBasis","priceListVersion","grants"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/diagnostics":{"get":{"operationId":"listLicenseDiagnostics","summary":"Every license with its connection diagnostics of the last 30 days (connected now, parallel connections, failed logins, GGA received, last seen); a license the caster could not be asked for reads unavailable","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Every license with its connection diagnostics of the last 30 days (connected now, parallel connections, failed logins, GGA received, last seen); a license the caster could not be asked for reads unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"monitoring":{"type":"string","enum":["monitored","unmonitored","unavailable"]},"connected":{"type":["boolean","null"]},"parallelConnections":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"authFailures":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ggaReceived":{"type":["boolean","null"]},"lastSeenAt":{"type":["string","null"]},"windowDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"checkedAt":{"type":"string"}},"required":["licenseId","monitoring","connected","parallelConnections","authFailures","ggaReceived","lastSeenAt","windowDays","checkedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/usage/daily":{"get":{"operationId":"getLicenseDailyUsage","summary":"Connected time per UTC day of the last 30, per license asked for (null: the caster could not be read for it, never an idle month)","tags":["Licenses"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"licenseIds","in":"query","required":true,"schema":{"description":"Ids, comma separated (at most 200)","type":"string"}}],"responses":{"200":{"description":"Connected time per UTC day of the last 30, per license asked for (null: the caster could not be read for it, never an idle month)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"asOf":{"type":"string"},"days":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"data":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"connectedSeconds":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"type":"null"}],"description":"Connected seconds per day, one entry per entry of days. Parallel connections add up, so with several at once a day can pass 86400. Null when it could not be read."}},"required":["licenseId","connectedSeconds"],"additionalProperties":false}}},"required":["asOf","days","data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/usage/utilization":{"get":{"operationId":"getLicensePeakUtilization","summary":"The peak of parallel connections per UTC day against the streams each login held that day, per license asked for","tags":["Licenses"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"licenseIds","in":"query","required":true,"schema":{"description":"Ids, comma separated (at most 200)","type":"string"}}],"responses":{"200":{"description":"The peak of parallel connections per UTC day against the streams each login held that day, per license asked for","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"asOf":{"type":"string"},"days":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"data":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"peakRatio":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},{"type":"null"}]}},"required":["licenseId","peakRatio"],"additionalProperties":false}}},"required":["asOf","days","data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/utilization":{"get":{"operationId":"getLicenseUtilization","summary":"One login's last 30 days: the streams it held, its peak and average use","tags":["Licenses"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One login's last 30 days: the streams it held, its peak and average use","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"asOf":{"type":"string"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"peakConnections":{"type":"integer","minimum":0,"maximum":9007199254740991},"peakRatio":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"peakConnections divided by streams as a fraction, null without streams. It can pass 1: the limit is enforced per region, not globally."},"averageRatio":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"Connected stream time divided by available stream time, as a fraction. Available time runs from the day's start, or the login's creation if later, to the day's end, or now for today, so today's value falls while the login is idle. Null without streams."}},"required":["date","streams","peakConnections","peakRatio","averageRatio"],"additionalProperties":false}}},"required":["licenseId","asOf","days"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/usage":{"get":{"operationId":"listLicenseUsage","summary":"Every license with what identifies it and its connection diagnostics, the portal's Usage table (the NTRIP login stays behind GET .../credentials)","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Every license with what identifies it and its connection diagnostics, the portal's Usage table (the NTRIP login stays behind GET .../credentials)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"monitoring":{"type":"string","enum":["monitored","unmonitored","unavailable"]},"connected":{"type":["boolean","null"]},"parallelConnections":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"authFailures":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ggaReceived":{"type":["boolean","null"]},"lastSeenAt":{"type":["string","null"]},"windowDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"checkedAt":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"mountpoint":{"type":["string","null"]},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"lastConnectionAt":{"type":["string","null"]}},"required":["licenseId","monitoring","connected","parallelConnections","authFailures","ggaReceived","lastSeenAt","windowDays","checkedAt","status","kind","seats","mountpoint","credentialType","tagIds","lastConnectionAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/next-username":{"get":{"operationId":"getNextLicenseUsername","summary":"The next free generated login of the account, to send as credentials.username with a password of your own on POST /v2/licenses; nothing is reserved, the create that names it uses it up","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["license","trial"]}}],"responses":{"200":{"description":"The next free generated login of the account, to send as credentials.username with a password of your own on POST /v2/licenses; nothing is reserved, the create that names it uses it up","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string"}},"required":["username"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"username_taken","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/expiring-service":{"get":{"operationId":"listLicensesExpiringService","summary":"The paid licenses that lose service unless renewed, soonest end first: auto renew off, inside 7 days of the end, or 30 days on an annual term. A fleet ends with its contingent and is not listed","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","responses":{"200":{"description":"The paid licenses that lose service unless renewed, soonest end first: auto renew off, inside 7 days of the end, or 30 days on an annual term. A fleet ends with its contingent and is not listed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]},"stage":{"type":"string","enum":["early","final"]},"daysLeft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil","stage","daysLeft"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["data","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/renewal-undo":{"get":{"operationId":"getLicenseRenewalUndo","summary":"What undoing the last renewal or extension would do, or why it cannot","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"What undoing the last renewal or extension would do, or why it cannot","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"undoable":{"type":"boolean"},"blocker":{"anyOf":[{"type":"string","enum":["no_renewal","not_active","superseded","added_streams","billed","unsupported"]},{"type":"null"}]},"renewal":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["manual","auto"]},"confirmedAt":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["source","confirmedAt","from","to","amount"],"additionalProperties":false},{"type":"null"}]},"restores":{"anyOf":[{"type":"object","properties":{"expiresAt":{"type":"string"},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expiresAt","termMonths","seats"],"additionalProperties":false},{"type":"null"}]},"autoRenew":{"type":"boolean"}},"required":["licenseId","undoable","blocker","renewal","restores","autoRenew"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"undoLicenseRenewal","summary":"Undo the last renewal or extension while it is on no issued bill: the end, term and seats go back, the charge leaves the next bill, auto renew is switched off","tags":["Licenses"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Undo the last renewal or extension while it is on no issued bill: the end, term and seats go back, the charge leaves the next bill, auto renew is switched off","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/diagnostics":{"get":{"operationId":"getLicenseDiagnostics","summary":"One license's connection diagnostics (the caster's answer of the last five minutes is reused; a device token: its own license)","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]},{"deviceToken":[]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One license's connection diagnostics (the caster's answer of the last five minutes is reused; a device token: its own license)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"monitoring":{"type":"string","enum":["monitored","unmonitored","unavailable"]},"connected":{"type":["boolean","null"]},"parallelConnections":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"authFailures":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ggaReceived":{"type":["boolean","null"]},"lastSeenAt":{"type":["string","null"]},"windowDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"checkedAt":{"type":"string"}},"required":["licenseId","monitoring","connected","parallelConnections","authFailures","ggaReceived","lastSeenAt","windowDays","checkedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/diagnostics/run":{"post":{"operationId":"runLicenseDiagnostics","summary":"One license's connection diagnostics, the caster asked afresh","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One license's connection diagnostics, the caster asked afresh","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"monitoring":{"type":"string","enum":["monitored","unmonitored","unavailable"]},"connected":{"type":["boolean","null"]},"parallelConnections":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"authFailures":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ggaReceived":{"type":["boolean","null"]},"lastSeenAt":{"type":["string","null"]},"windowDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"checkedAt":{"type":"string"}},"required":["licenseId","monitoring","connected","parallelConnections","authFailures","ggaReceived","lastSeenAt","windowDays","checkedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tags":{"get":{"operationId":"listTags","summary":"The account's tags in the key's environment, by name (a test key has its own)","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","responses":{"200":{"description":"The account's tags in the key's environment, by name (a test key has its own)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]},"licenseCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","color","licenseCount","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createTag","summary":"Create a tag (a name is unique regardless of case and spacing, at most 200 tags per environment)","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a tag (a name is unique regardless of case and spacing, at most 200 tags per environment)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]},"licenseCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","color","licenseCount","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, tag_name_taken, tag_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tags/{id}":{"get":{"operationId":"getTag","summary":"Read a tag with the number of licenses carrying it","tags":["Licenses"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a tag with the number of licenses carrying it","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]},"licenseCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","color","licenseCount","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"tag_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateTag","summary":"Rename or recolour a tag","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Rename or recolour a tag","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]},"licenseCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","color","licenseCount","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"tag_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, tag_name_taken","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteTag","summary":"Delete a tag: it comes off every license, nothing else changes","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a tag: it comes off every license, nothing else changes","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","enum":["gray","red","orange","amber","green","teal","blue","violet","pink"]},{"type":"string","pattern":"^#[0-9a-f]{6}$"}]},"licenseCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","color","licenseCount","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"tag_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tags/licenses":{"post":{"operationId":"tagLicenses","summary":"Put tags on and take tags off up to 5000 licenses at once (a repeat changes nothing, no Idempotency-Key; no event is sent, tagIds on the license says what it carries)","tags":["Licenses"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseIds":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},"add":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"remove":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Put tags on and take tags off up to 5000 licenses at once (a repeat changes nothing, no Idempotency-Key; no event is sent, tagIds on the license says what it carries)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["added","removed"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"tag_not_found, license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/claim-code":{"post":{"operationId":"createClaimCode","summary":"Mint a single use claim code for a device to take one slot of the license (valid 7 days, answered once; replaces the open code of the license)","tags":["Devices"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"201":{"description":"Mint a single use claim code for a device to take one slot of the license (valid 7 days, answered once; replaces the open code of the license)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":["string","null"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"expiresAt":{"type":"string"}},"required":["code","licenseId","expiresAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/slots":{"get":{"operationId":"listLicenseSlots","summary":"The license's slots, one per seat, with the device in each (a device token: its own license)","tags":["Devices"],"security":[{"apiKey":["licenses:read"]},{"deviceToken":[]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The license's slots, one per seat, with the device in each (a device token: its own license)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"label":{"type":["string","null"]},"status":{"type":"string","enum":["free","assigned"]},"device":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"serial":{"type":"string"},"label":{"type":["string","null"]}},"required":["id","serial","label"],"additionalProperties":false},{"type":"null"}]},"lastActiveAt":{"type":["string","null"]}},"required":["id","licenseId","number","label","status","device","lastActiveAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/licenses/{id}/slots/{slotId}":{"patch":{"operationId":"updateLicenseSlot","summary":"Name a slot, or release the device in it (its secret and tokens end, the slot is free for the next claim)","tags":["Devices"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"slotId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"release":{"type":"boolean","const":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"Name a slot, or release the device in it (its secret and tokens end, the slot is free for the next claim)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"label":{"type":["string","null"]},"status":{"type":"string","enum":["free","assigned"]},"device":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"serial":{"type":"string"},"label":{"type":["string","null"]}},"required":["id","serial","label"],"additionalProperties":false},{"type":"null"}]},"lastActiveAt":{"type":["string","null"]}},"required":["id","licenseId","number","label","status","device","lastActiveAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found, slot_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/devices":{"get":{"operationId":"listDevices","summary":"The account's claimed devices, oldest claim first, released ones included","tags":["Devices"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","released"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's claimed devices, oldest claim first, released ones included","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"slotId":{"anyOf":[{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},{"type":"null"}]},"serial":{"type":"string"},"label":{"type":["string","null"]},"status":{"type":"string","enum":["active","released"]},"claimedAt":{"type":"string"},"lastSeenAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]}},"required":["id","environment","licenseId","slotId","serial","label","status","claimedAt","lastSeenAt","releasedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/devices/self":{"get":{"operationId":"getOwnDevice","summary":"The device behind the calling device token","tags":["Devices"],"security":[{"deviceToken":[]}],"responses":{"200":{"description":"The device behind the calling device token","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"slotId":{"anyOf":[{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},{"type":"null"}]},"serial":{"type":"string"},"label":{"type":["string","null"]},"status":{"type":"string","enum":["active","released"]},"claimedAt":{"type":"string"},"lastSeenAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]}},"required":["id","environment","licenseId","slotId","serial","label","status","claimedAt","lastSeenAt","releasedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"device_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/devices/{id}":{"get":{"operationId":"getDevice","summary":"Read a device","tags":["Devices"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a device","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"slotId":{"anyOf":[{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},{"type":"null"}]},"serial":{"type":"string"},"label":{"type":["string","null"]},"status":{"type":"string","enum":["active","released"]},"claimedAt":{"type":"string"},"lastSeenAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]}},"required":["id","environment","licenseId","slotId","serial","label","status","claimedAt","lastSeenAt","releasedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"device_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/devices/claim":{"post":{"operationId":"claimDevice","summary":"Spend a claim code: the device takes a free slot of the license and gets its client id, a client secret (answered once) and the NTRIP credentials; the same device repeating the claim gets a new secret (no API key: the code is the credential)","tags":["Devices"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":20},"serial":{"type":"string","minLength":1,"maxLength":120},"label":{"type":"string","minLength":1,"maxLength":80}},"required":["code","serial"],"additionalProperties":false}}}},"responses":{"201":{"description":"Spend a claim code: the device takes a free slot of the license and gets its client id, a client secret (answered once) and the NTRIP credentials; the same device repeating the claim gets a new secret (no API key: the code is the credential)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"device":{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"slotId":{"anyOf":[{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},{"type":"null"}]},"serial":{"type":"string"},"label":{"type":["string","null"]},"status":{"type":"string","enum":["active","released"]},"claimedAt":{"type":"string"},"lastSeenAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]}},"required":["id","environment","licenseId","slotId","serial","label","status","claimedAt","lastSeenAt","releasedAt"],"additionalProperties":false},"clientId":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"clientSecret":{"type":"string"},"credentials":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mountpoint":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"setupString":{"type":"string"}},"required":["host","port","mountpoint","username","password","setupString"],"additionalProperties":false}},"required":["device","clientId","clientSecret","credentials"],"additionalProperties":false}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"claim_code_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"claim_code_used, slots_full, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/oauth/token":{"post":{"operationId":"issueDeviceToken","summary":"A device token for one hour (OAuth 2.0 client credentials; JSON or form encoded, the RFC's snake case names; no API key)","tags":["Devices"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"grant_type":{"type":"string","const":"client_credentials"},"client_id":{"type":"string","minLength":1,"maxLength":200},"client_secret":{"type":"string","minLength":1,"maxLength":200},"scope":{"type":"string","maxLength":500}},"required":["grant_type","client_id","client_secret"],"additionalProperties":false}}}},"responses":{"200":{"description":"A device token for one hour (OAuth 2.0 client credentials; JSON or form encoded, the RFC's snake case names; no API key)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string","const":"Bearer"},"expires_in":{"type":"integer","minimum":1,"maximum":9007199254740991},"scope":{"type":"string"}},"required":["access_token","token_type","expires_in","scope"],"additionalProperties":false}}}},"401":{"description":"invalid_client","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents":{"get":{"operationId":"listContingents","summary":"Your account's stream contingents, newest first, with their fleets and free streams","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","suspended","expired","ended"]}},{"name":"trial","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Your account's stream contingents, newest first, with their fleets and free streams","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createContingent","summary":"Buy streams for a term, at a fleet product or the standard terms per stream; billed with the running month (a test key: never)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"integer","minimum":1,"maximum":10000},"productId":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["streams"],"additionalProperties":false}}}},"responses":{"201":{"description":"Buy streams for a term, at a fleet product or the standard terms per stream; billed with the running month (a test key: never)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"product_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, setup_incomplete, invalid_state, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}":{"get":{"operationId":"getContingent","summary":"Read a stream contingent with its fleets","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a stream contingent with its fleets","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateContingent","summary":"Switch auto renew (on only while it runs; a trial contingent never renews)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoRenew":{"type":"boolean"}},"required":["autoRenew"],"additionalProperties":false}}}},"responses":{"200":{"description":"Switch auto renew (on only while it runs; a trial contingent never renews)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/usage/daily":{"get":{"operationId":"getContingentDailyUsage","summary":"The most connections open at one moment per UTC day of the last 30, across each contingent's logins","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"contingentIds","in":"query","required":true,"schema":{"description":"Ids, comma separated (at most 200)","type":"string"}}],"responses":{"200":{"description":"The most connections open at one moment per UTC day of the last 30, across each contingent's logins","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"asOf":{"type":"string"},"days":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"data":{"type":"array","items":{"type":"object","properties":{"contingentId":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"peakConnections":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"type":"null"}]}},"required":["contingentId","peakConnections"],"additionalProperties":false}}},"required":["asOf","days","data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/renew":{"post":{"operationId":"renewContingent","summary":"Renew for its own streams and term; every running fleet gets the new end first","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Renew for its own streams and term; every running fleet gets the new end first","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account, setup_incomplete","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/top-up-preview":{"get":{"operationId":"previewContingentTopUp","summary":"What raising the contingent to a new total would bill now, and its price per term afterwards","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"streams","in":"query","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"What raising the contingent to a new total would bill now, and its price per term afterwards","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"newPrice":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false}},"required":["amount","periodStart","periodEnd","streams","newPrice"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/top-up":{"post":{"operationId":"topUpContingent","summary":"Raise the contingent to a new total of streams until its own end, the extra streams billed pro rata (the same total again changes nothing)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"integer","minimum":1,"maximum":10000}},"required":["streams"],"additionalProperties":false}}}},"responses":{"200":{"description":"Raise the contingent to a new total of streams until its own end, the extra streams billed pro rata (the same total again changes nothing)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account, setup_incomplete, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/fleets":{"post":{"operationId":"createContingentFleet","summary":"Cut a fleet (one login, its streams) from the free streams; a trial fleet on a trial contingent","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"integer","minimum":1,"maximum":10000},"credentials":{"type":"object","properties":{"username":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[A-Za-z0-9._@-]+$"},"password":{"type":"string","minLength":6,"maxLength":64,"pattern":"^[\\x21-\\x7E]+$"}},"required":["username","password"],"additionalProperties":false}},"required":["streams"],"additionalProperties":false}}}},"responses":{"201":{"description":"Cut a fleet (one login, its streams) from the free streams; a trial fleet on a trial contingent","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, username_taken","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"provisioning_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/devices":{"post":{"operationId":"createContingentDevice","summary":"A trial device (one stream) from a trial contingent","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","properties":{"username":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[A-Za-z0-9._@-]+$"},"password":{"type":"string","minLength":6,"maxLength":64,"pattern":"^[\\x21-\\x7E]+$"}},"required":["username","password"],"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"201":{"description":"A trial device (one stream) from a trial contingent","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, username_taken","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"provisioning_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/transfers":{"post":{"operationId":"transferContingentStreams","summary":"Move streams from one fleet of the contingent to another (a source left with none is archived, a target that had none unarchived)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromLicenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"toLicenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"streams":{"type":"integer","minimum":1,"maximum":10000}},"required":["fromLicenseId","toLicenseId","streams"],"additionalProperties":false}}}},"responses":{"200":{"description":"Move streams from one fleet of the contingent to another (a source left with none is archived, a target that had none unarchived)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found, license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"provisioning_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/fleets/{licenseId}/release":{"post":{"operationId":"releaseFleetStreams","summary":"Free streams of a fleet back to the contingent (a fleet left with none is archived); the identical request finishes one the caster interrupted","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"licenseId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"integer","minimum":1,"maximum":10000}},"required":["streams"],"additionalProperties":false}}}},"responses":{"200":{"description":"Free streams of a fleet back to the contingent (a fleet left with none is archived); the identical request finishes one the caster interrupted","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found, license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"provisioning_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/fleets/{licenseId}":{"delete":{"operationId":"deleteContingentFleet","summary":"End a fleet for good: its login stops, its streams are free again and the contingent no longer lists it (a second delete answers the same)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:write"]}],"x-scope":"licenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"licenseId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"End a fleet for good: its login stops, its streams are free again and the contingent no longer lists it (a second delete answers the same)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found, license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"outcome_unknown","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/contingents/{id}/fleets/{licenseId}/convert":{"post":{"operationId":"convertTrialFleet","summary":"Buy a contingent for a trial fleet of this trial contingent; the fleet keeps its login and moves onto it (answers the bought contingent)","tags":["Contingents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"licenseId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Buy a contingent for a trial fleet of this trial contingent; the fleet keeps its login and moves onto it (answers the bought contingent)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"contingent_not_found, license_not_found, product_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state, not_available_for_account, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/grants":{"get":{"operationId":"listGrants","summary":"The purchase ledger: a bill annex, the next bill so far, or the history of a license","tags":["Grants"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"invoiceId","in":"query","required":false,"schema":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"}},{"name":"billedPeriod","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"unbilled","in":"query","required":false,"schema":{"type":"string","const":"true"}},{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The purchase ledger: a bill annex, the next bill so far, or the history of a license","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"kind":{"type":"string","enum":["trial","paid","complimentary"]},"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":0,"maximum":9007199254740991},"purchaseMode":{"anyOf":[{"type":"string","enum":["months","days","expiresAt","trial","seats"]},{"type":"null"}]},"quantity":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"listAmount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discountRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amountEstimated":{"type":"boolean"},"billing":{"type":"string","enum":["chargeable","free","settled"]},"invoiceId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billedPeriod":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"origin":{"type":"string","enum":["api","portal","job","admin","migrated"]},"operationType":{"anyOf":[{"type":"string","enum":["create","convert","extend","add_seats","complimentary"]},{"type":"null"}]},"operationId":{"anyOf":[{"type":"string","pattern":"^op_[0-9a-f]{32}$"},{"type":"null"}]},"idempotencyKey":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"createdAt":{"type":"string"},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]}},"required":["id","licenseId","kind","role","baseGrantId","from","to","seats","purchaseMode","quantity","listAmount","discountRate","amount","amountEstimated","billing","invoiceId","billedPeriod","voidedAt","origin","operationType","operationId","idempotencyKey","metadata","createdAt","contingentId"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bills":{"get":{"operationId":"listBills","summary":"List bills (the monthly bills, or the old portal archive with source=legacy)","tags":["Bills"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","overdue","paid","void"]}},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"source","in":"query","required":false,"schema":{"default":"portal","type":"string","enum":["portal","legacy"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List bills (the monthly bills, or the old portal archive with source=legacy)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"source":{"type":"string","enum":["portal","legacy"]},"kind":{"type":"string","enum":["invoice","credit_note"]},"number":{"type":["string","null"]},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"status":{"type":"string","enum":["open","overdue","paid","void"]},"issuedAt":{"type":"string"},"dueAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"netAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"vatRate":{"type":"number","minimum":0,"maximum":1},"vatAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"grossAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchange":{"anyOf":[{"type":"object","properties":{"baseNetAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string"}},"required":["baseNetAmount","rate","rateDate"],"additionalProperties":false},{"type":"null"}]},"discount":{"anyOf":[{"type":"object","properties":{"tier":{"type":["string","null"]},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","rate"],"additionalProperties":false},{"type":"null"}]},"lineCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"hostedInvoiceUrl":{"type":["string","null"]},"pdfAvailable":{"type":"boolean"}},"required":["id","source","kind","number","period","status","issuedAt","dueAt","paidAt","currency","netAmount","vatRate","vatAmount","grossAmount","exchange","discount","lineCount","hostedInvoiceUrl","pdfAvailable"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bills/upcoming":{"get":{"operationId":"getUpcomingBill","summary":"The running month's bill so far: a header, the lines are GET /v2/grants?unbilled=true","tags":["Bills"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","responses":{"200":{"description":"The running month's bill so far: a header, the lines are GET /v2/grants?unbilled=true","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"closesAt":{"type":"string"},"discount":{"type":"object","properties":{"tier":{"type":["string","null"]},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","rate"],"additionalProperties":false},"invoices":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","minLength":3,"maxLength":3},"netAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"lineCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"estimate":{"anyOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string"}},"required":["amount","exchangeRate","rateDate"],"additionalProperties":false},{"type":"null"}]}},"required":["currency","netAmount","lineCount","estimate"],"additionalProperties":false}}},"required":["period","closesAt","discount","invoices"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bills/{id}":{"get":{"operationId":"getBill","summary":"Read a bill","tags":["Bills"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a bill","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"source":{"type":"string","enum":["portal","legacy"]},"kind":{"type":"string","enum":["invoice","credit_note"]},"number":{"type":["string","null"]},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"status":{"type":"string","enum":["open","overdue","paid","void"]},"issuedAt":{"type":"string"},"dueAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"netAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"vatRate":{"type":"number","minimum":0,"maximum":1},"vatAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"grossAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchange":{"anyOf":[{"type":"object","properties":{"baseNetAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string"}},"required":["baseNetAmount","rate","rateDate"],"additionalProperties":false},{"type":"null"}]},"discount":{"anyOf":[{"type":"object","properties":{"tier":{"type":["string","null"]},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","rate"],"additionalProperties":false},{"type":"null"}]},"lineCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"hostedInvoiceUrl":{"type":["string","null"]},"pdfAvailable":{"type":"boolean"}},"required":["id","source","kind","number","period","status","issuedAt","dueAt","paidAt","currency","netAmount","vatRate","vatAmount","grossAmount","exchange","discount","lineCount","hostedInvoiceUrl","pdfAvailable"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bill_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bills/{id}/lines":{"get":{"operationId":"listBillLines","summary":"The lines of a bill: its grants, the same rows as GET /v2/grants?invoiceId=","tags":["Bills"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The lines of a bill: its grants, the same rows as GET /v2/grants?invoiceId=","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"kind":{"type":"string","enum":["trial","paid","complimentary"]},"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":0,"maximum":9007199254740991},"purchaseMode":{"anyOf":[{"type":"string","enum":["months","days","expiresAt","trial","seats"]},{"type":"null"}]},"quantity":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"listAmount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discountRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amountEstimated":{"type":"boolean"},"billing":{"type":"string","enum":["chargeable","free","settled"]},"invoiceId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billedPeriod":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"origin":{"type":"string","enum":["api","portal","job","admin","migrated"]},"operationType":{"anyOf":[{"type":"string","enum":["create","convert","extend","add_seats","complimentary"]},{"type":"null"}]},"operationId":{"anyOf":[{"type":"string","pattern":"^op_[0-9a-f]{32}$"},{"type":"null"}]},"idempotencyKey":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"createdAt":{"type":"string"},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]}},"required":["id","licenseId","kind","role","baseGrantId","from","to","seats","purchaseMode","quantity","listAmount","discountRate","amount","amountEstimated","billing","invoiceId","billedPeriod","voidedAt","origin","operationType","operationId","idempotencyKey","metadata","createdAt","contingentId"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bill_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bills/{id}/pdf":{"get":{"operationId":"getBillPdf","summary":"The PDF of a bill (application/pdf)","tags":["Bills"],"security":[{"apiKey":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF of a bill (application/pdf)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bill_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"pdf_not_ready","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/bills":{"get":{"operationId":"getBillStats","summary":"The bills rolled up: counts, what is outstanding, the most recent and the next due","tags":["Bills"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"The bills rolled up: counts, what is outstanding, the most recent and the next due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object","properties":{"open":{"type":"integer","minimum":0,"maximum":9007199254740991},"overdue":{"type":"integer","minimum":0,"maximum":9007199254740991},"paid":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["open","overdue","paid"],"additionalProperties":false},"outstanding":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"billCount":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["amount","billCount"],"additionalProperties":false}},"mostRecent":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"status":{"type":"string","enum":["open","overdue","paid","void"]},"grossAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false}},"required":["id","period","status","grossAmount"],"additionalProperties":false},{"type":"null"}]},"nextDue":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"status":{"type":"string","enum":["open","overdue","paid","void"]},"grossAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"dueAt":{"type":"string"}},"required":["id","period","status","grossAmount","dueAt"],"additionalProperties":false},{"type":"null"}]}},"required":["counts","outstanding","mostRecent","nextDue"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/events":{"get":{"operationId":"listEvents","summary":"The event feed","tags":["Events"],"security":[{"apiKey":["events:read"]}],"x-scope":"events:read","parameters":[{"name":"afterPosition","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":2147483647}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["license.activated","license.updated","license.suspended","license.reactivated","license.cancelled","license.renewed","license.expiring","license.expired","license.created","license.failed","license.converted","license.extended","license.ended","license.removed","license.first_connection","license.never_connected","license.trial_expiring","license.credentials_sent","license.archived","license.unarchived","contingent.created","contingent.renewed","contingent.updated","contingent.expired","session.started","session.ended","invoice.issued","invoice.paid","invoice.overdue","account.past_due","account.updated","account.suspended","account.reactivated","profile_change_request.submitted","profile_change_request.decided","api_key.created","api_key.updated","api_key.revoked","api_key.rotated","webhook.created","webhook.updated","webhook.deleted","webhook.failing","webhook.recovered","member.invited","member.updated","member.removed","device.claimed","device.released","ticket.opened","ticket.replied","ticket.status_changed","sales_quote.requested","sales_quote.released","sales_quote.revised","sales_quote.ordered","sales_quote.declined","sales_quote.canceled","sales_quote.fulfilled","product.created","product.updated","product.archived","tag.created","tag.updated","tag.deleted","bulk_operation.finished","document.shared","document.withdrawn"]}},{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"The event feed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9a-f]{32}$"},"position":{"type":"integer","minimum":1,"maximum":9007199254740991},"type":{"type":"string"},"occurredAt":{"type":"string"},"sequence":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","position","type","occurredAt","sequence","data"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextPosition":{"type":"integer","minimum":0,"maximum":9007199254740991},"latestPosition":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumeAfterPosition":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["data","hasMore","nextPosition","latestPosition","resumeAfterPosition"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"event_history_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/events/{id}":{"get":{"operationId":"getEvent","summary":"Read an event","tags":["Events"],"security":[{"apiKey":["events:read"]}],"x-scope":"events:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read an event","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9a-f]{32}$"},"position":{"type":"integer","minimum":1,"maximum":9007199254740991},"type":{"type":"string"},"occurredAt":{"type":"string"},"sequence":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","position","type","occurredAt","sequence","data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"event_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks":{"get":{"operationId":"listWebhooks","summary":"List webhook endpoints","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","responses":{"200":{"description":"List webhook endpoints","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhook","summary":"Register a webhook endpoint","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["license.activated","license.updated","license.suspended","license.reactivated","license.cancelled","license.renewed","license.expiring","license.expired","license.created","license.failed","license.converted","license.extended","license.ended","license.removed","license.first_connection","license.never_connected","license.trial_expiring","license.credentials_sent","license.archived","license.unarchived","contingent.created","contingent.renewed","contingent.updated","contingent.expired","session.started","session.ended","invoice.issued","invoice.paid","invoice.overdue","account.past_due","account.updated","account.suspended","account.reactivated","profile_change_request.submitted","profile_change_request.decided","api_key.created","api_key.updated","api_key.revoked","api_key.rotated","webhook.created","webhook.updated","webhook.deleted","webhook.failing","webhook.recovered","member.invited","member.updated","member.removed","device.claimed","device.released","ticket.opened","ticket.replied","ticket.status_changed","sales_quote.requested","sales_quote.released","sales_quote.revised","sales_quote.ordered","sales_quote.declined","sales_quote.canceled","sales_quote.fulfilled","product.created","product.updated","product.archived","tag.created","tag.updated","tag.deleted","bulk_operation.finished","document.shared","document.withdrawn"]}},"payloadVersion":{"default":"v2","type":"string","enum":["v1","v2"]},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}}},"required":["url","events"],"additionalProperties":false}}}},"responses":{"201":{"description":"Register a webhook endpoint","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"signingSecret":{"type":["string","null"]}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt","signingSecret"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks/{id}":{"get":{"operationId":"getWebhook","summary":"Read a webhook endpoint","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a webhook endpoint","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateWebhook","summary":"Change a webhook endpoint","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["license.activated","license.updated","license.suspended","license.reactivated","license.cancelled","license.renewed","license.expiring","license.expired","license.created","license.failed","license.converted","license.extended","license.ended","license.removed","license.first_connection","license.never_connected","license.trial_expiring","license.credentials_sent","license.archived","license.unarchived","contingent.created","contingent.renewed","contingent.updated","contingent.expired","session.started","session.ended","invoice.issued","invoice.paid","invoice.overdue","account.past_due","account.updated","account.suspended","account.reactivated","profile_change_request.submitted","profile_change_request.decided","api_key.created","api_key.updated","api_key.revoked","api_key.rotated","webhook.created","webhook.updated","webhook.deleted","webhook.failing","webhook.recovered","member.invited","member.updated","member.removed","device.claimed","device.released","ticket.opened","ticket.replied","ticket.status_changed","sales_quote.requested","sales_quote.released","sales_quote.revised","sales_quote.ordered","sales_quote.declined","sales_quote.canceled","sales_quote.fulfilled","product.created","product.updated","product.archived","tag.created","tag.updated","tag.deleted","bulk_operation.finished","document.shared","document.withdrawn"]}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change a webhook endpoint","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWebhook","summary":"Remove a webhook endpoint","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remove a webhook endpoint","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"The delivery log of an endpoint","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","sending","delivered","failed","suppressed"]}},{"name":"eventType","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":80}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The delivery log of an endpoint","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^del_[0-9a-f]{32}$"},"eventId":{"type":"string"},"eventType":{"type":"string"},"status":{"type":"string","enum":["pending","sending","delivered","failed","suppressed"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"failureReason":{"type":["string","null"]},"nextAttemptAt":{"type":["string","null"]},"lastAttemptAt":{"type":["string","null"]},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","eventId","eventType","status","attempts","lastStatusCode","failureReason","nextAttemptAt","lastAttemptAt","deliveredAt","createdAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks/{id}/deliveries/{deliveryId}/retry":{"post":{"operationId":"retryWebhookDelivery","summary":"Send one delivery again","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Send one delivery again","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^del_[0-9a-f]{32}$"},"eventId":{"type":"string"},"eventType":{"type":"string"},"status":{"type":"string","enum":["pending","sending","delivered","failed","suppressed"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"failureReason":{"type":["string","null"]},"nextAttemptAt":{"type":["string","null"]},"lastAttemptAt":{"type":["string","null"]},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","eventId","eventType","status","attempts","lastStatusCode","failureReason","nextAttemptAt","lastAttemptAt","deliveredAt","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found, delivery_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks/{id}/test":{"post":{"operationId":"testWebhook","summary":"Send a signed ping","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Send a signed ping","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/webhooks/{id}/roll-secret":{"post":{"operationId":"rollWebhookSecret","summary":"Replace the signing secret, the old one signing as well for 24 hours","tags":["Webhooks"],"security":[{"apiKey":["webhooks:manage"]}],"x-scope":"webhooks:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Replace the signing secret, the old one signing as well for 24 hours","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"signingSecret":{"type":["string","null"]}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt","signingSecret"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"webhook_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys":{"get":{"operationId":"listApiKeys","summary":"The account's API keys of this environment","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","responses":{"200":{"description":"The account's API keys of this environment","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createApiKey","summary":"Create a key in this environment with the scopes, expiry, ip allowlist and rate limit tier given (the secret is answered once)","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":80},"principal":{"type":"string","minLength":1,"maxLength":120},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["account:read","account:write","documents:read","licenses:read","licenses:provision","licenses:write","credentials:read","bills:read","quotes:read","quotes:write","tickets:read","tickets:write","events:read","stats:read","requests:read","sessions:read","webhooks:manage","keys:manage","members:manage","notifications:read","notifications:write","alerts:manage"]}},"expiresAt":{"type":"string"},"ipAllowlist":{"default":[],"maxItems":50,"type":"array","items":{"type":"string"}},"rateLimitTier":{"default":"standard","type":"string","enum":["standard","elevated","high"]}},"required":["label","scopes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a key in this environment with the scopes, expiry, ip allowlist and rate limit tier given (the secret is answered once)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"secret":{"type":["string","null"]}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt","secret"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys/self":{"get":{"operationId":"getOwnApiKey","summary":"The calling key","tags":["API keys"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"The calling key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys/{id}":{"get":{"operationId":"getApiKey","summary":"Read a key","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_key_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateApiKey","summary":"Change a key (label, principal, scopes, expiry, ip allowlist, rate limit tier)","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":80},"principal":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["account:read","account:write","documents:read","licenses:read","licenses:provision","licenses:write","credentials:read","bills:read","quotes:read","quotes:write","tickets:read","tickets:write","events:read","stats:read","requests:read","sessions:read","webhooks:manage","keys:manage","members:manage","notifications:read","notifications:write","alerts:manage"]}},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"maxItems":50,"type":"array","items":{"type":"string"}},"rateLimitTier":{"type":"string","enum":["standard","elevated","high"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change a key (label, principal, scopes, expiry, ip allowlist, rate limit tier)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_key_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys/{id}/revoke":{"post":{"operationId":"revokeApiKey","summary":"Revoke a key at once (a repeat answers the revoked key unchanged)","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Revoke a key at once (a repeat answers the revoked key unchanged)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_key_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys/{id}/rotate":{"post":{"operationId":"rotateApiKey","summary":"Issue a successor with the same settings and a new secret; the replaced key works for the overlap and then expires","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"overlapHours":{"default":24,"type":"integer","minimum":0,"maximum":168}},"additionalProperties":false}}}},"responses":{"201":{"description":"Issue a successor with the same settings and a new secret; the replaced key works for the overlap and then expires","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"secret":{"type":["string","null"]}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt","secret"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_key_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-keys/{id}/usage":{"get":{"operationId":"getApiKeyUsage","summary":"One key's calls of the window: totals, by route, per day","tags":["API keys"],"security":[{"apiKey":["keys:manage"]}],"x-scope":"keys:manage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":90}}],"responses":{"200":{"description":"One key's calls of the window: totals, by route, per day","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"windowDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"totals":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"clientErrors":{"type":"integer","minimum":0,"maximum":9007199254740991},"serverErrors":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["calls","failed","clientErrors","serverErrors"],"additionalProperties":false},"byRoute":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"route":{"type":"string"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["method","route","calls","failed"],"additionalProperties":false}},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","calls","failed"],"additionalProperties":false}},"lastUsedAt":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["keyId","windowDays","totals","byRoute","days","lastUsedAt","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_key_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-requests":{"get":{"operationId":"listApiRequests","summary":"The account's request log, newest first; find a call by the RTK-Request-Id it answered with","tags":["API keys"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"requestId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"keyId","in":"query","required":false,"schema":{"type":"string","pattern":"^key_[0-9a-f]{32}$"}},{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["test","live"]}},{"name":"method","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":10}},{"name":"route","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["success","client_error","server_error"]}},{"name":"occurredSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"occurredBefore","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's request log, newest first; find a call by the RTK-Request-Id it answered with","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^arq_[0-9a-f]{32}$"},"requestId":{"type":["string","null"]},"method":{"type":"string"},"route":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"environment":{"type":"string","enum":["test","live"]},"latencyMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"idempotencyKey":{"type":["string","null"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"occurredAt":{"type":"string"}},"required":["id","requestId","method","route","statusCode","environment","latencyMs","keyId","idempotencyKey","licenseId","occurredAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/api-requests/{id}":{"get":{"operationId":"getApiRequest","summary":"One call of the request log with what it sent and received, as recorded and with credentials masked. The bodies come back for the key's own environment and for the last 30 days, else payload is null","tags":["API keys"],"security":[{"apiKey":["requests:read"]}],"x-scope":"requests:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One call of the request log with what it sent and received, as recorded and with credentials masked. The bodies come back for the key's own environment and for the last 30 days, else payload is null","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^arq_[0-9a-f]{32}$"},"requestId":{"type":["string","null"]},"method":{"type":"string"},"route":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"environment":{"type":"string","enum":["test","live"]},"latencyMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"idempotencyKey":{"type":["string","null"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"occurredAt":{"type":"string"},"payload":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"request":{"type":"object","properties":{"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":["string","null"]},"truncated":{"type":"boolean"}},"required":["query","headers","body","truncated"],"additionalProperties":false},"response":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":["string","null"]},"truncated":{"type":"boolean"}},"required":["headers","body","truncated"],"additionalProperties":false}},"required":["url","request","response"],"additionalProperties":false},{"type":"null"}]}},"required":["id","requestId","method","route","statusCode","environment","latencyMs","keyId","idempotencyKey","licenseId","occurredAt","payload"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"api_request_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/licenses":{"get":{"operationId":"getLicenseStats","summary":"Licenses by status and kind, with the ones expiring soon","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"Licenses by status and kind, with the ones expiring soon","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"byStatus":{"type":"object","properties":{"provisioning":{"type":"integer","minimum":0,"maximum":9007199254740991},"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"suspended":{"type":"integer","minimum":0,"maximum":9007199254740991},"expired":{"type":"integer","minimum":0,"maximum":9007199254740991},"ended":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["provisioning","active","suspended","expired","ended","removed","failed"],"additionalProperties":false},"byKind":{"type":"object","properties":{"trial":{"type":"integer","minimum":0,"maximum":9007199254740991},"paid":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["trial","paid"],"additionalProperties":false},"byCredentialType":{"type":"object","properties":{"device":{"type":"integer","minimum":0,"maximum":9007199254740991},"fleet":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["device","fleet"],"additionalProperties":false,"x-account-kinds":["enterprise"]},"archived":{"type":"integer","minimum":0,"maximum":9007199254740991,"x-account-kinds":["enterprise"]},"expiringSoon":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiringSoonDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["total","byStatus","byKind","byCredentialType","archived","expiringSoon","expiringSoonDays","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/trials":{"get":{"operationId":"getTrialStats","summary":"Running trials, the ones ending soon and the ones never connected","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"Running trials, the ones ending soon and the ones never connected","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiringSoon":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiringSoonDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"neverConnected":{"type":"integer","minimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["active","expiringSoon","expiringSoonDays","neverConnected","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/usage":{"get":{"operationId":"getUsageStats","summary":"Connected and idle licenses, failed logins and seat overuse over the window","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"Connected and idle licenses, failed logins and seat overuse over the window","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"totalLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"activeTrials":{"type":"integer","minimum":0,"maximum":9007199254740991},"monitoredLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"connectedNow":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Licenses with an open connection right now. Always 0 for a test key: a rehearsed session is never open."},"notConnected":{"type":"integer","minimum":0,"maximum":9007199254740991},"avgAuthFailures":{"type":"number","minimum":0},"connectionsOverSeats":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Connections open right now beyond what each license may hold, summed; 0 is healthy. Overuse in the past does not count. Always 0 for a test key: a rehearsed session is never open."},"windowDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["totalLicenses","activeTrials","monitoredLicenses","connectedNow","notConnected","avgAuthFailures","connectionsOverSeats","windowDays","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"caster_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/usage/trend":{"get":{"operationId":"getUsageTrend","summary":"The portfolio per month: active, inactive and trial licenses","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"The portfolio per month: active, inactive and trial licenses","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","const":"month"},"data":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"inactive":{"type":"integer","minimum":0,"maximum":9007199254740991},"trials":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["period","active","inactive","trials"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["interval","data","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/sessions":{"get":{"operationId":"getSessionStats","summary":"Live connections, sessions of the last 6 hours and 30 days, the fix rate","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"Live connections, sessions of the last 6 hours and 30 days, the fix rate","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"liveNow":{"type":"integer","minimum":0,"maximum":9007199254740991},"sessions6h":{"type":"integer","minimum":0,"maximum":9007199254740991},"sessions30d":{"type":"integer","minimum":0,"maximum":9007199254740991},"avgFixRate30d":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"windowDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["liveNow","sessions6h","sessions30d","avgFixRate30d","windowDays","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/sessions/trend":{"get":{"operationId":"getSessionTrend","summary":"Sessions per day and the busiest base stations","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"Sessions per day and the busiest base stations","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","const":"day"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"sessions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","sessions"],"additionalProperties":false}},"topStations":{"type":"array","items":{"type":"object","properties":{"station":{"type":"string"},"sessions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["station","sessions"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["interval","data","topStations","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/api":{"get":{"operationId":"getApiStats","summary":"The account's API calls of the window, by key and environment","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"The account's API calls of the window, by key and environment","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"totals":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"live":{"type":"integer","minimum":0,"maximum":9007199254740991},"test":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["calls","failed","live","test"],"additionalProperties":false},"byKey":{"type":"array","items":{"type":"object","properties":{"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"label":{"type":"string"},"environment":{"type":"string","enum":["test","live"]},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastCalledAt":{"type":"string"}},"required":["keyId","label","environment","calls","failed","lastCalledAt"],"additionalProperties":false}},"windowDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["totals","byKey","windowDays","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/api/keys/daily":{"get":{"operationId":"getApiKeyDailyCalls","summary":"Each key's calls per UTC day of the last 14, both environments and API versions","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"Each key's calls per UTC day of the last 14, both environments and API versions","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"asOf":{"type":"string"},"days":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"data":{"type":"array","items":{"type":"object","properties":{"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"calls":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["keyId","calls"],"additionalProperties":false}}},"required":["asOf","days","data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/api/health":{"get":{"operationId":"getApiHealth","summary":"The account's API health per environment over the last 14 days: failures, rate limit refusals, p95 latency and the changing calls still unresolved","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"The account's API health per environment over the last 14 days: failures, rate limit refusals, p95 latency and the changing calls still unresolved","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"live":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimited":{"type":"integer","minimum":0,"maximum":9007199254740991},"p95LatencyMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pendingOperations":{"type":"integer","minimum":0,"maximum":9007199254740991},"oldestPendingSince":{"type":["string","null"]}},"required":["calls","failed","rateLimited","p95LatencyMs","pendingOperations","oldestPendingSince"],"additionalProperties":false},"test":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimited":{"type":"integer","minimum":0,"maximum":9007199254740991},"p95LatencyMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pendingOperations":{"type":"integer","minimum":0,"maximum":9007199254740991},"oldestPendingSince":{"type":["string","null"]}},"required":["calls","failed","rateLimited","p95LatencyMs","pendingOperations","oldestPendingSince"],"additionalProperties":false},"windowDays":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["live","test","windowDays","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/api/trend":{"get":{"operationId":"getApiTrend","summary":"API calls per day, live, test and failed","tags":["Stats"],"security":[{"apiKey":["stats:read"]}],"x-scope":"stats:read","responses":{"200":{"description":"API calls per day, live, test and failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","const":"day"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"live":{"type":"integer","minimum":0,"maximum":9007199254740991},"test":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","live","test","failed"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["interval","data","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sessions":{"get":{"operationId":"listSessions","summary":"The caster sessions of your licenses, newest first (the last 30 days unless a window is given)","tags":["Sessions"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","ended"]}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"startedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"startedBefore","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The caster sessions of your licenses, newest first (the last 30 days unless a window is given)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"caster":{"type":"string","enum":["rtkdata","legacy"]},"status":{"type":"string","enum":["open","ended"]},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"durationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"mountpoint":{"type":["string","null"]},"outcome":{"type":["string","null"]},"fixRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},{"type":"null"}]},"syncedAt":{"type":["string","null"]}},"required":["id","licenseId","caster","status","startedAt","endedAt","durationSeconds","mountpoint","outcome","fixRate","position","syncedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sessions/summary":{"get":{"operationId":"getSessionSummary","summary":"Every session of the window summed up: how many, the average duration, each license's newest session with a position (the last 30 days unless a window is given)","tags":["Sessions"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}},{"name":"startedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"startedBefore","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Every session of the window summed up: how many, the average duration, each license's newest session with a position (the last 30 days unless a window is given)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"integer","minimum":0,"maximum":9007199254740991},"averageDurationSeconds":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"positioned":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"caster":{"type":"string","enum":["rtkdata","legacy"]},"status":{"type":"string","enum":["open","ended"]},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"durationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"mountpoint":{"type":["string","null"]},"outcome":{"type":["string","null"]},"fixRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},{"type":"null"}]},"syncedAt":{"type":["string","null"]}},"required":["id","licenseId","caster","status","startedAt","endedAt","durationSeconds","mountpoint","outcome","fixRate","position","syncedAt"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["sessions","averageDurationSeconds","positioned","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sessions/live":{"get":{"operationId":"listLiveSessions","summary":"The open connections with a known position right now","tags":["Sessions"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"tagId","in":"query","required":false,"schema":{"description":"Tag ids, comma separated (at most 20); a row matches when it carries any of them, `none` matches a row without a tag","type":"string"}}],"responses":{"200":{"description":"The open connections with a known position right now","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"fix":{"type":"string","enum":["fixed","float"]},"position":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},"satellites":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"lastSeenAt":{"type":"string"}},"required":["sessionId","licenseId","fix","position","satellites","lastSeenAt"],"additionalProperties":false}},"asOf":{"type":"string"}},"required":["data","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sessions/{id}/track":{"get":{"operationId":"getSessionTrack","summary":"The recorded path of a session, as JSON, GeoJSON (format=geojson or Accept: application/geo+json) or GPX (format=gpx or Accept: application/gpx+xml)","tags":["Sessions"],"security":[{"apiKey":["sessions:read"]}],"x-scope":"sessions:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","geojson","gpx"]}}],"responses":{"200":{"description":"The recorded path of a session, as JSON, GeoJSON (format=geojson or Accept: application/geo+json) or GPX (format=gpx or Accept: application/gpx+xml)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"position":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},"fix":{"type":"string","enum":["fixed","float","dgps","single","no_fix"]},"satellites":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","position","fix","satellites"],"additionalProperties":false}}},"required":["sessionId","licenseId","startedAt","endedAt","points"],"additionalProperties":false}},"application/geo+json":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"FeatureCollection"},"features":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"Feature"},"geometry":{"type":"object","properties":{"type":{"type":"string","const":"LineString"},"coordinates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false,"minItems":2,"maxItems":2}}},"required":["type","coordinates"],"additionalProperties":false},"properties":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"points":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sessionId","licenseId","startedAt","endedAt","points"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"Feature"},"geometry":{"type":"object","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false,"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},"properties":{"type":"object","properties":{"at":{"type":"string"},"fix":{"type":"string","enum":["fixed","float","dgps","single","no_fix"]},"satellites":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","fix","satellites"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}]}}},"required":["type","features"],"additionalProperties":false},"description":"A FeatureCollection: the path as a LineString, then one Point per sample with its time, fix and satellites"},"application/gpx+xml":{"schema":{"type":"string"},"description":"GPX 1.1, one track with one segment; the RTK fix in an rtk:fix extension on each point"}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"session_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/notifications":{"get":{"operationId":"listNotifications","summary":"The account's inbox, newest first: what the portal shows under the bell (empty for a test key, nothing in the test environment notifies)","tags":["Notifications"],"security":[{"apiKey":["notifications:read"]}],"x-scope":"notifications:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["unread","read"]}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]}},{"name":"createdSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdBefore","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's inbox, newest first: what the portal shows under the bell (empty for a test key, nothing in the test environment notifies)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Has-More":{"description":"text/csv only: \"true\" or \"false\"","schema":{"type":"string"}},"RTK-Next-Cursor":{"description":"text/csv only, present while there is a next page","schema":{"type":"string"}},"RTK-As-Of":{"description":"text/csv only: the asOf of the scan","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^ntf_[0-9a-f]{32}$"},"kind":{"anyOf":[{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},{"type":"null"}]},"tone":{"type":"string","enum":["info","success","warning","danger"]},"title":{"type":"string"},"body":{"type":["string","null"]},"action":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"path":{"type":"string"}},"required":["label","path"],"additionalProperties":false},{"type":"null"}]},"sender":{"type":["string","null"]},"status":{"type":"string","enum":["unread","read"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","tone","title","body","action","sender","status","readAt","createdAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}},"text/csv":{"schema":{"type":"string"},"description":"The same page as rows: a header of every column any item has (nested fields dotted), one row per item. hasMore, nextCursor and asOf are the RTK-Has-More, RTK-Next-Cursor and RTK-As-Of headers. Answered when Accept prefers text/csv over application/json."}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/stats/notifications":{"get":{"operationId":"getNotificationStats","summary":"The inbox rolled up: total, unread, by kind, the newest arrival","tags":["Notifications"],"security":[{"apiKey":["notifications:read"]}],"x-scope":"notifications:read","responses":{"200":{"description":"The inbox rolled up: total, unread, by kind, the newest arrival","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991},"byKind":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},{"type":"null"}]},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["kind","total","unread"],"additionalProperties":false}},"latestAt":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["total","unread","byKind","latestAt","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/notifications/{id}":{"patch":{"operationId":"updateNotification","summary":"Mark a notification read or unread","tags":["Notifications"],"security":[{"apiKey":["notifications:write"]}],"x-scope":"notifications:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean"}},"required":["read"],"additionalProperties":false}}}},"responses":{"200":{"description":"Mark a notification read or unread","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ntf_[0-9a-f]{32}$"},"kind":{"anyOf":[{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},{"type":"null"}]},"tone":{"type":"string","enum":["info","success","warning","danger"]},"title":{"type":"string"},"body":{"type":["string","null"]},"action":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"path":{"type":"string"}},"required":["label","path"],"additionalProperties":false},{"type":"null"}]},"sender":{"type":["string","null"]},"status":{"type":"string","enum":["unread","read"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","tone","title","body","action","sender","status","readAt","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"notification_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteNotification","summary":"Remove a notification from the inbox","tags":["Notifications"],"security":[{"apiKey":["notifications:write"]}],"x-scope":"notifications:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remove a notification from the inbox","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ntf_[0-9a-f]{32}$"},"kind":{"anyOf":[{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},{"type":"null"}]},"tone":{"type":"string","enum":["info","success","warning","danger"]},"title":{"type":"string"},"body":{"type":["string","null"]},"action":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"path":{"type":"string"}},"required":["label","path"],"additionalProperties":false},{"type":"null"}]},"sender":{"type":["string","null"]},"status":{"type":"string","enum":["unread","read"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","tone","title","body","action","sender","status","readAt","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"notification_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/notifications/read-all":{"post":{"operationId":"readAllNotifications","summary":"Mark every unread notification read","tags":["Notifications"],"security":[{"apiKey":["notifications:write"]}],"x-scope":"notifications:write","responses":{"200":{"description":"Mark every unread notification read","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":0,"maximum":9007199254740991},"asOf":{"type":"string"}},"required":["updated","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/notification-settings":{"get":{"operationId":"getNotificationSettings","summary":"Which event reaches which channel, the recipient address and the digest cadence","tags":["Notifications"],"security":[{"apiKey":["notifications:write"]}],"x-scope":"notifications:write","responses":{"200":{"description":"Which event reaches which channel, the recipient address and the digest cadence","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"channels":{"type":"object","propertyNames":{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},"additionalProperties":{"type":"object","properties":{"inApp":{"type":"boolean"},"email":{"type":"boolean"}},"required":["inApp","email"],"additionalProperties":false},"required":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},"digestCadence":{"type":"string","enum":["weekly","biweekly","monthly","custom","off"]},"customDigestDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["email","channels","digestCadence","customDigestDays"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateNotificationSettings","summary":"Change the recipient address, the channels of named kinds or the digest cadence (billing kinds keep their in-app channel)","tags":["Notifications"],"security":[{"apiKey":["notifications:write"]}],"x-scope":"notifications:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"channels":{"type":"object","propertyNames":{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},"additionalProperties":{"type":"object","properties":{"inApp":{"type":"boolean"},"email":{"type":"boolean"}},"required":["inApp","email"],"additionalProperties":false}},"digestCadence":{"type":"string","enum":["weekly","biweekly","monthly","custom","off"]},"customDigestDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":180},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change the recipient address, the channels of named kinds or the digest cadence (billing kinds keep their in-app channel)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"channels":{"type":"object","propertyNames":{"type":"string","enum":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},"additionalProperties":{"type":"object","properties":{"inApp":{"type":"boolean"},"email":{"type":"boolean"}},"required":["inApp","email"],"additionalProperties":false},"required":["trial_activated","trial_expiring","trial_expired","new_sale_confirmed","renewal_confirmed","renewal_upcoming","auto_renewal_upcoming","invoice_issued","invoice_due_soon","invoice_overdue","dunning_reminder","dunning_credit_hold","dunning_renewals_blocked","approval_request_decided","webhook_failing","license_expired","service_cut","contingent_added","contingent_ending_soon","contingent_expired","quote_received","quote_fulfilled","renewal_quote_reminder","ticket_replied","ticket_resolved"]},"digestCadence":{"type":"string","enum":["weekly","biweekly","monthly","custom","off"]},"customDigestDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["email","channels","digestCadence","customDigestDays"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/test/clock":{"post":{"operationId":"advanceTestClock","summary":"Move a test license's clock forward and run what became due (test keys only)","tags":["Sandbox"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"advanceTo":{"type":"string"}},"required":["licenseId","advanceTo"],"additionalProperties":false}}}},"responses":{"200":{"description":"Move a test license's clock forward and run what became due (test keys only)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, test_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/test/sessions":{"post":{"operationId":"recordTestSession","summary":"Record a connection on a test license (test keys only). It has to lie within a time the license had access, grace included, and end by the license's clock. A sessionKey is unique per license: the same one again records nothing, whatever the other values, and answers recorded: false, so this call takes no Idempotency-Key. A session dated ahead of real time shows in /v2/sessions and lastSeenAt at once; daily usage, utilization and /v2/stats/sessions stop at real time and count it once real time has passed","tags":["Sandbox"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"sessionKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"startedAt":{"type":"string"},"durationSeconds":{"type":"integer","minimum":1,"maximum":86400}},"required":["licenseId","sessionKey","startedAt","durationSeconds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Record a connection on a test license (test keys only). It has to lie within a time the license had access, grace included, and end by the license's clock. A sessionKey is unique per license: the same one again records nothing, whatever the other values, and answers recorded: false, so this call takes no Idempotency-Key. A session dated ahead of real time shows in /v2/sessions and lastSeenAt at once; daily usage, utilization and /v2/stats/sessions stop at real time and count it once real time has passed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"sessionKey":{"type":"string"},"recorded":{"type":"boolean"}},"required":["sessionKey","recorded"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, test_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"license_removed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/documents":{"get":{"operationId":"listDocuments","summary":"The files RTKdata shared with the account, newest first","tags":["Documents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["documents:read"]}],"x-scope":"documents:read","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The files RTKdata shared with the account, newest first","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"uploadedAt":{"type":"string"}},"required":["id","fileName","contentType","size","uploadedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/documents/{id}":{"get":{"operationId":"getDocument","summary":"Read one shared document","tags":["Documents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["documents:read"]}],"x-scope":"documents:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read one shared document","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"uploadedAt":{"type":"string"}},"required":["id","fileName","contentType","size","uploadedAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"document_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/documents/{id}/download":{"get":{"operationId":"getDocumentDownload","summary":"A signed link to the file, fresh on every call and valid for 5 minutes (expiresAt), to fetch without your API key","tags":["Documents"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["documents:read"]}],"x-scope":"documents:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A signed link to the file, fresh on every call and valid for 5 minutes (expiresAt), to fetch without your API key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"document_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets":{"get":{"operationId":"listTickets","summary":"The account's support tickets, newest first","tags":["Support"],"security":[{"apiKey":["tickets:read"]}],"x-scope":"tickets:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["technical","billing","account","escalation","other"]}},{"name":"licenseId","in":"query","required":false,"schema":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}},{"name":"billId","in":"query","required":false,"schema":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"}},{"name":"lastMessageSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's support tickets, newest first","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"openTicket","summary":"Open a support ticket, optionally about a license or a bill","tags":["Support"],"security":[{"apiKey":["tickets:write"]}],"x-scope":"tickets:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":200},"category":{"type":"string","enum":["technical","billing","account","other"]},"body":{"type":"string","minLength":1,"maxLength":10000},"severity":{"type":"string","minLength":1},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"billId":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"}},"required":["subject","category","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Open a support ticket, optionally about a license or a bill","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found, bill_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/stats":{"get":{"operationId":"getTicketStats","summary":"How many tickets are not closed, and how many of those hold an answer no member opened in the portal yet","tags":["Support"],"security":[{"apiKey":["tickets:read"]}],"x-scope":"tickets:read","responses":{"200":{"description":"How many tickets are not closed, and how many of those hold an answer no member opened in the portal yet","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"integer","minimum":0,"maximum":9007199254740991},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["open","unread"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/escalations":{"post":{"operationId":"escalateLicense","summary":"Hand a license's problem over to RTKdata once the first checks are done. Opens a ticket of category escalation and tells support by email","tags":["Support"],"security":[{"apiKey":["tickets:write"]}],"x-scope":"tickets:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"symptom":{"type":"string","minLength":1,"maxLength":10000},"timeWindow":{"type":"string","minLength":1,"maxLength":200},"stepsCompleted":{"type":"string","minLength":1,"maxLength":10000},"runbookId":{"type":"string","minLength":1,"maxLength":200}},"required":["licenseId","symptom","timeWindow","stepsCompleted"],"additionalProperties":false}}}},"responses":{"201":{"description":"Hand a license's problem over to RTKdata once the first checks are done. Opens a ticket of category escalation and tells support by email","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/bill-inquiries":{"post":{"operationId":"askAboutBill","summary":"Ask RTKdata about a bill, once per bill. Opens a ticket of category billing and tells support by email; a second one is 409 conflict, GET /v2/tickets?billId= finds the first","tags":["Support"],"security":[{"apiKey":["tickets:write"]}],"x-scope":"tickets:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billId":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"reason":{"type":"string","minLength":1,"maxLength":10000}},"required":["billId","reason"],"additionalProperties":false}}}},"responses":{"201":{"description":"Ask RTKdata about a bill, once per bill. Opens a ticket of category billing and tells support by email; a second one is 409 conflict, GET /v2/tickets?billId= finds the first","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bill_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, conflict","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/{id}":{"get":{"operationId":"getTicket","summary":"Read a ticket: its thread and how its status moved. Attachment links are fresh on every read and short lived","tags":["Support"],"security":[{"apiKey":["tickets:read"]}],"x-scope":"tickets:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a ticket: its thread and how its status moved. Attachment links are fresh on every read and short lived","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ticket_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/{id}/messages":{"post":{"operationId":"replyToTicket","summary":"Answer in the thread, which reopens a resolved ticket; a closed one is refused. Send multipart/form-data to attach screenshots","tags":["Support"],"security":[{"apiKey":["tickets:write"]}],"x-scope":"tickets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"],"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"attachments":{"type":"array","maxItems":5,"description":"Up to 5 PNG, JPEG, WebP or GIF screenshots of at most 5 MB each","items":{"type":"string","format":"binary"}}},"required":["body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Answer in the thread, which reopens a resolved ticket; a closed one is refused. Send multipart/form-data to attach screenshots","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ticket_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/tickets/{id}/close":{"post":{"operationId":"closeTicket","summary":"Close a ticket for good, a new question is a new ticket. Closing a closed ticket answers it as it is, so no Idempotency-Key","tags":["Support"],"security":[{"apiKey":["tickets:write"]}],"x-scope":"tickets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Close a ticket for good, a new question is a new ticket. Closing a closed ticket answers it as it is, so no Idempotency-Key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkt_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"subject":{"type":"string"},"category":{"type":"string","enum":["technical","billing","account","escalation","other"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},"severity":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"responseTimeHours":{"type":"number","exclusiveMinimum":0},"resolutionTimeHours":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["label","responseTimeHours","resolutionTimeHours"],"additionalProperties":false},{"type":"null"}]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"licenseName":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billPeriod":{"type":["string","null"]},"openedByName":{"type":"string"},"lastMessageSide":{"type":"string","enum":["account","staff"]},"lastMessageAt":{"type":"string"},"unread":{"type":"boolean"},"createdAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tkm_[0-9a-f]{32}$"},"side":{"type":"string","enum":["account","staff"]},"authorName":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tka_[0-9a-f]{32}$"},"fileName":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string"}},"required":["id","fileName","contentType","size","url"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","side","authorName","body","attachments","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^tke_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["opened","status_changed"]},"fromStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","in_progress","waiting_on_account","resolved","closed"]},{"type":"null"}]},"actorSide":{"anyOf":[{"type":"string","enum":["account","staff"]},{"type":"null"}]},"actorName":{"type":["string","null"]},"automatic":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","kind","fromStatus","toStatus","actorSide","actorName","automatic","createdAt"],"additionalProperties":false}}},"required":["id","number","subject","category","status","severity","licenseId","licenseName","billId","billPeriod","openedByName","lastMessageSide","lastMessageAt","unread","createdAt","resolvedAt","closedAt","messages","events"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ticket_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes":{"get":{"operationId":"listSalesQuotes","summary":"The account's quotes from RTKdata, newest first: what it asked for and what RTKdata released to it","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:read"]}],"x-scope":"quotes:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["order","renewal"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's quotes from RTKdata, newest first: what it asked for and what RTKdata released to it","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"requestSalesQuote","summary":"Ask RTKdata for a quote: what and how long, never a price. It reads requested until RTKdata released it","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:write"]}],"x-scope":"quotes:write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"}},"required":["type","quantity"],"additionalProperties":false}},"note":{"type":"string","maxLength":500},"startsOn":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"}},"required":["lines"],"additionalProperties":false}}}},"responses":{"201":{"description":"Ask RTKdata for a quote: what and how long, never a price. It reads requested until RTKdata released it","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"product_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/stats":{"get":{"operationId":"getSalesQuoteStats","summary":"How many quotes can be ordered right now, and how many of those no member opened in the portal yet","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:read"]}],"x-scope":"quotes:read","responses":{"200":{"description":"How many quotes can be ordered right now, and how many of those no member opened in the portal yet","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"integer","minimum":0,"maximum":9007199254740991},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["open","unread"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/products":{"get":{"operationId":"listSalesQuoteProducts","summary":"The products a quote line can name, the same list as GET /v2/account/products under this scope","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:read"]}],"x-scope":"quotes:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","expired","archived"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["device","fleet"]}}],"responses":{"200":{"description":"The products a quote line can name, the same list as GET /v2/account/products under this scope","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"name":{"type":"string"},"type":{"type":"string","enum":["device","fleet"]},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"status":{"type":"string","enum":["active","expired","archived"]},"sellableUntil":{"type":["string","null"]},"archivedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","type","termMonths","price","status","sellableUntil","archivedAt","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}":{"get":{"operationId":"getSalesQuote","summary":"Read a quote, a renewal quote with every item it renews","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:read"]}],"x-scope":"quotes:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Read a quote, a renewal quote with every item it renews","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}/pdf":{"get":{"operationId":"getSalesQuotePdf","summary":"The quote's document from Stripe (application/pdf), once RTKdata released it","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:read"]}],"x-scope":"quotes:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The quote's document from Stripe (application/pdf), once RTKdata released it","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account, pdf_not_ready","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"stripe_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}/decline":{"post":{"operationId":"declineSalesQuote","summary":"Say no to an open quote","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:write"]}],"x-scope":"quotes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Say no to an open quote","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}/withdraw":{"post":{"operationId":"withdrawSalesQuote","summary":"Take back a quote you asked for, as long as RTKdata has not answered it. It reads canceled from then on; a released quote is declined instead","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:write"]}],"x-scope":"quotes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Take back a quote you asked for, as long as RTKdata has not answered it. It reads canceled from then on; a released quote is declined instead","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}/order":{"post":{"operationId":"orderSalesQuote","summary":"Order an open quote, at the price it states: this is a purchase. Everything is delivered in the background (from startsOn on) and billed on an invoice of its own, follow it on delivery","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:write"]}],"x-scope":"quotes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderNumber":{"type":"string","minLength":1,"maxLength":40}},"additionalProperties":false}}}},"responses":{"200":{"description":"Order an open quote, at the price it states: this is a purchase. Everything is delivered in the background (from startsOn on) and billed on an invoice of its own, follow it on delivery","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, setup_incomplete, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/sales-quotes/{id}/renewal-items":{"put":{"operationId":"updateSalesQuoteRenewalItems","summary":"Choose what an open renewal quote renews: the whole set to leave off, each one ends with its term. The quote is revised under a new number. Safe to repeat, so no Idempotency-Key","tags":["Quotes from RTKdata"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["quotes:write"]}],"x-scope":"quotes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"excludedIds":{"maxItems":5000,"type":"array","items":{"type":"string","pattern":"^(lic|ctg)_[0-9a-f]{32}$"}}},"required":["excludedIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Choose what an open renewal quote renews: the whole set to leave off, each one ends with its term. The quote is revised under a new number. Safe to repeat, so no Idempotency-Key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["order","renewal"]},"status":{"type":"string","enum":["requested","draft","open","expired","ordered","fulfilled","declined","canceled"]},"number":{"type":["string","null"]},"renewalMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"renewalSummary":{"anyOf":[{"type":"object","properties":{"devices":{"type":"integer","minimum":0,"maximum":9007199254740991},"contingents":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["devices","contingents","excluded"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"productName":{"type":["string","null"]},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["index","type","quantity","termMonths","productId","productName","unitPrice","amount"],"additionalProperties":false}},"requestNote":{"type":["string","null"]},"note":{"type":["string","null"]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"quoted":{"anyOf":[{"type":"object","properties":{"net":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchangeRate":{"type":"number","exclusiveMinimum":0},"exchangeRateDate":{"type":"string"}},"required":["net","exchangeRate","exchangeRateDate"],"additionalProperties":false},{"type":"null"}]},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"startsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},{"type":"null"}]},"requestedAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]},"viewedAt":{"type":["string","null"]},"purchaseOrderNumber":{"type":["string","null"]},"orderedAt":{"type":["string","null"]},"delivery":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["device","contingent"]},"total":{"type":"integer","minimum":1,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"bulkOperationId":{"anyOf":[{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]}},"required":["index","type","total","delivered","failed","bulkOperationId","contingentId"],"additionalProperties":false}},{"type":"null"}]},"fulfilledAt":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closeReason":{"type":["string","null"]},"billId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billDocument":{"anyOf":[{"type":"object","properties":{"hostedUrl":{"type":"string","format":"uri"},"pdfUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["hostedUrl","pdfUrl"],"additionalProperties":false},{"type":"null"}]},"pdfAvailable":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"renewalItems":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","contingent"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"cycleStart":{"type":"string"},"cycleEnd":{"type":"string"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"excluded":{"type":"boolean"},"renewed":{"type":"boolean"},"renewalPendingUntil":{"type":["string","null"]}},"required":["credentialType","licenseId","contingentId","username","streams","termMonths","cycleStart","cycleEnd","amount","excluded","renewed","renewalPendingUntil"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","kind","status","number","renewalMonth","renewalSummary","lines","requestNote","note","total","quoted","expiresOn","startsOn","requestedAt","releasedAt","viewedAt","purchaseOrderNumber","orderedAt","delivery","fulfilledAt","closedAt","closeReason","billId","billDocument","pdfAvailable","createdAt","updatedAt","renewalItems"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, live_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"sales_quote_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"stripe_unavailable","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bulk-operations":{"get":{"operationId":"listBulkOperations","summary":"The account's bulk orders, newest first, with how far each got","tags":["Bulk operations"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["running","done","partial"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The account's bulk orders, newest first, with how far each got","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"credentialType":{"type":"string","enum":["device","fleet"]},"status":{"type":"string","enum":["running","done","partial"]},"count":{"type":"integer","minimum":1,"maximum":9007199254740991},"doneCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"pendingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"termMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"streams":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"usernamePrefix":{"type":["string","null"]},"firstNumber":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"salesQuoteId":{"anyOf":[{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},{"type":"null"}]},"createdAt":{"type":"string"},"finishedAt":{"type":["string","null"]}},"required":["id","environment","credentialType","status","count","doneCount","failedCount","pendingCount","productId","termMonths","contingentId","streams","tagIds","usernamePrefix","firstNumber","salesQuoteId","createdAt","finishedAt"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"asOf":{"type":"string"}},"required":["data","hasMore","nextCursor","asOf"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"cursor_expired","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createBulkOperation","summary":"Order up to 500 devices or fleets in one call: answers 202 at once, each credential is made in the background on its own and bills like a single create (a test key: never)","tags":["Bulk operations"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"credentialType":{"type":"string","enum":["device","fleet"]},"count":{"type":"integer","minimum":1,"maximum":500},"productId":{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991},"contingentId":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"streams":{"type":"integer","minimum":1,"maximum":10000},"tagIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"usernamePrefix":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9._@-]+$"},"firstNumber":{"type":"integer","minimum":0,"maximum":999999}},"required":["credentialType","count"],"additionalProperties":false}}}},"responses":{"202":{"description":"Order up to 500 devices or fleets in one call: answers 202 at once, each credential is made in the background on its own and bills like a single create (a test key: never)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"credentialType":{"type":"string","enum":["device","fleet"]},"status":{"type":"string","enum":["running","done","partial"]},"count":{"type":"integer","minimum":1,"maximum":9007199254740991},"doneCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"pendingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"termMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"streams":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"usernamePrefix":{"type":["string","null"]},"firstNumber":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"salesQuoteId":{"anyOf":[{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},{"type":"null"}]},"createdAt":{"type":"string"},"finishedAt":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","done","failed"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"error":{"type":["string","null"]}},"required":["index","status","licenseId","username","error"],"additionalProperties":false}}},"required":["id","environment","credentialType","status","count","doneCount","failedCount","pendingCount","productId","termMonths","contingentId","streams","tagIds","usernamePrefix","firstNumber","salesQuoteId","createdAt","finishedAt","items"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"account_past_due","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"product_not_found, contingent_not_found, tag_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, setup_incomplete, invalid_state, billing_limit_reached","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bulk-operations/{id}":{"get":{"operationId":"getBulkOperation","summary":"Follow an order: its status and every credential in it (poll while it reads running)","tags":["Bulk operations"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:read"]}],"x-scope":"licenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Follow an order: its status and every credential in it (poll while it reads running)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"credentialType":{"type":"string","enum":["device","fleet"]},"status":{"type":"string","enum":["running","done","partial"]},"count":{"type":"integer","minimum":1,"maximum":9007199254740991},"doneCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"pendingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"termMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"streams":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"usernamePrefix":{"type":["string","null"]},"firstNumber":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"salesQuoteId":{"anyOf":[{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},{"type":"null"}]},"createdAt":{"type":"string"},"finishedAt":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","done","failed"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"error":{"type":["string","null"]}},"required":["index","status","licenseId","username","error"],"additionalProperties":false}}},"required":["id","environment","credentialType","status","count","doneCount","failedCount","pendingCount","productId","termMonths","contingentId","streams","tagIds","usernamePrefix","firstNumber","salesQuoteId","createdAt","finishedAt","items"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bulk_operation_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/bulk-operations/{id}/retry":{"post":{"operationId":"retryBulkOperation","summary":"Run the failed credentials of a finished order again: one that got reserved is finished, never made twice","tags":["Bulk operations"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Your own key for this call, 1 to 200 characters","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"202":{"description":"Run the failed credentials of a finished order again: one that got reserved is finished, never made twice","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"RTK-Operation-Id":{"schema":{"type":"string","pattern":"^op_[0-9a-f]{32}$"}},"Idempotency-Replayed":{"description":"\"true\" when this is the stored answer of an earlier call","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^blk_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"credentialType":{"type":"string","enum":["device","fleet"]},"status":{"type":"string","enum":["running","done","partial"]},"count":{"type":"integer","minimum":1,"maximum":9007199254740991},"doneCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"pendingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"termMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}]},"streams":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"usernamePrefix":{"type":["string","null"]},"firstNumber":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"salesQuoteId":{"anyOf":[{"type":"string","pattern":"^sqt_[0-9a-f]{32}$"},{"type":"null"}]},"createdAt":{"type":"string"},"finishedAt":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","done","failed"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"username":{"type":["string","null"]},"error":{"type":["string","null"]}},"required":["index","status","licenseId","username","error"],"additionalProperties":false}}},"required":["id","environment","credentialType","status","count","doneCount","failedCount","pendingCount","productId","termMonths","contingentId","streams","tagIds","usernamePrefix","firstNumber","salesQuoteId","createdAt","finishedAt","items"],"additionalProperties":false}}}},"400":{"description":"invalid_request","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"bulk_operation_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_key_reused, operation_in_progress, not_available_for_account, invalid_state","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/credential-exports":{"post":{"operationId":"exportCredentials","summary":"Read the live logins of up to 500 devices and fleets at once, passwords included, never stored; one the caster cannot answer is listed as unavailable, the rest still export (a test key reads placeholders)","tags":["Bulk operations"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["credentials:read"]}],"x-scope":"credentials:read","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"}}},"required":["licenseIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Read the live logins of up to 500 devices and fleets at once, passwords included, never stored; one the caster cannot answer is listed as unavailable, the rest still export (a test key reads placeholders)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mountpoint":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"setupString":{"type":"string"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiresAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["host","port","mountpoint","username","password","setupString","licenseId","credentialType","streams","expiresAt","tagIds"],"additionalProperties":false}},"unavailable":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"username":{"type":["string","null"]},"reason":{"type":"string","enum":["provisioning","removed","caster_unavailable"]}},"required":["licenseId","username","reason"],"additionalProperties":false}}},"required":["data","unavailable"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"license_not_found","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/test/trial-contingents":{"post":{"operationId":"createTestTrialContingent","summary":"A test trial contingent like the one RTKdata grants an enterprise account, to rehearse trial fleets and devices (test keys only)","tags":["Sandbox"],"x-account-kinds":["enterprise"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"integer","minimum":1,"maximum":10000},"days":{"type":"integer","minimum":1,"maximum":365}},"required":["streams","days"],"additionalProperties":false}}}},"responses":{"201":{"description":"A test trial contingent like the one RTKdata grants an enterprise account, to rehearse trial fleets and devices (test keys only)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["active","suspended","expired","ended"]},"trial":{"type":"boolean"},"streams":{"type":"integer","minimum":1,"maximum":9007199254740991},"allocatedStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeStreams":{"type":"integer","minimum":0,"maximum":9007199254740991},"termMonths":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The term in months. Only a placeholder on a trial, which never renews: read expiresAt for its end."},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"renewalPendingUntil":{"type":["string","null"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"nextRenewal":{"anyOf":[{"type":"object","properties":{"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"periodStart":{"type":"string"},"periodEnd":{"type":"string"}},"required":["price","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"fleets":{"type":"array","items":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"credentialType":{"type":"string","enum":["device","fleet"]},"username":{"type":["string","null"]},"streams":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"archivedAt":{"type":["string","null"]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["licenseId","credentialType","username","streams","status","archivedAt","tagIds"],"additionalProperties":false}},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","environment","status","trial","streams","allocatedStreams","freeStreams","termMonths","validFrom","expiresAt","renewalPendingUntil","productId","price","autoRenew","complimentary","nextRenewal","fleets","sequence","createdAt"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, test_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"not_available_for_account, setup_incomplete","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v2/test/bill-preview":{"get":{"operationId":"previewTestBill","summary":"What the bill of a period would contain, over the test grants (test keys only)","tags":["Sandbox"],"security":[{"apiKey":["licenses:provision"]}],"x-scope":"licenses:provision","parameters":[{"name":"period","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}}],"responses":{"200":{"description":"What the bill of a period would contain, over the test grants (test keys only)","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"cutoff":{"type":"string"},"invoices":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","minLength":3,"maxLength":3},"netAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"kind":{"type":"string","enum":["trial","paid","complimentary"]},"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":0,"maximum":9007199254740991},"purchaseMode":{"anyOf":[{"type":"string","enum":["months","days","expiresAt","trial","seats"]},{"type":"null"}]},"quantity":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"listAmount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discountRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amountEstimated":{"type":"boolean"},"billing":{"type":"string","enum":["chargeable","free","settled"]},"invoiceId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billedPeriod":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"origin":{"type":"string","enum":["api","portal","job","admin","migrated"]},"operationType":{"anyOf":[{"type":"string","enum":["create","convert","extend","add_seats","complimentary"]},{"type":"null"}]},"operationId":{"anyOf":[{"type":"string","pattern":"^op_[0-9a-f]{32}$"},{"type":"null"}]},"idempotencyKey":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"createdAt":{"type":"string"},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]}},"required":["id","licenseId","kind","role","baseGrantId","from","to","seats","purchaseMode","quantity","listAmount","discountRate","amount","amountEstimated","billing","invoiceId","billedPeriod","voidedAt","origin","operationType","operationId","idempotencyKey","metadata","createdAt","contingentId"],"additionalProperties":false}}},"required":["currency","netAmount","lines"],"additionalProperties":false}}},"required":["period","cutoff","invoices"],"additionalProperties":false}}}},"401":{"description":"invalid_api_key","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, api_disabled, test_only","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_failed","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited","headers":{"RTK-Request-Id":{"description":"The id of this request, quote it to support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key (rtk_live_... or rtk_test_...) with the scope the operation names. Scopes: account:read, account:write, documents:read, licenses:read, licenses:provision, licenses:write, credentials:read, bills:read, quotes:read, quotes:write, tickets:read, tickets:write, events:read, stats:read, requests:read, sessions:read, webhooks:manage, keys:manage, members:manage, notifications:read, notifications:write, alerts:manage."},"deviceToken":{"type":"oauth2","description":"A claimed device's token (rtk_dev_..., one hour), for the device's own license, credentials, diagnostics and slots: claim a slot with POST /v2/devices/claim, then trade the client id and secret at POST /v2/oauth/token.","flows":{"clientCredentials":{"tokenUrl":"/v2/oauth/token","scopes":{}}}}},"schemas":{"Error":{"type":"object","required":["code","message","requestId","docUrl"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_api_key","invalid_client","account_past_due","insufficient_scope","api_disabled","test_only","live_only","ip_not_allowed","forbidden","license_not_found","customer_not_found","event_not_found","webhook_not_found","delivery_not_found","bill_not_found","api_key_not_found","api_request_not_found","session_not_found","notification_not_found","member_not_found","extension_request_not_found","device_not_found","slot_not_found","claim_code_not_found","product_not_found","tag_not_found","bulk_operation_not_found","sales_quote_not_found","ticket_not_found","document_not_found","profile_change_request_not_found","contingent_not_found","not_found","idempotency_key_reused","idempotency_key_legacy","operation_in_progress","billing_limit_reached","trial_already_used","username_taken","member_already_exists","invalid_state","reinstate_required","hold_by_rtkdata","claim_code_used","slots_full","pdf_not_ready","not_available_for_account","setup_incomplete","tag_name_taken","tag_limit_reached","conflict","license_removed","cursor_expired","event_history_expired","validation_failed","rate_limited","login_link_cooldown","invite_cooldown","internal_error","provisioning_failed","outcome_unknown","caster_unavailable","stripe_unavailable","coverage_unavailable"]},"message":{"type":"string"},"requestId":{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$"},"docUrl":{"type":"string"},"fields":{"type":"array","description":"Present on 422 validation_failed only","items":{"type":"object","required":["path","code","message"],"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}}}}},"additionalProperties":true},"Event":{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9a-f]{32}$"},"position":{"type":"integer","minimum":1,"maximum":9007199254740991},"type":{"type":"string"},"occurredAt":{"type":"string"},"sequence":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","position","type","occurredAt","sequence","data"],"additionalProperties":false},"EventType":{"type":"string","enum":["license.activated","license.updated","license.suspended","license.reactivated","license.cancelled","license.renewed","license.expiring","license.expired","license.created","license.failed","license.converted","license.extended","license.ended","license.removed","license.first_connection","license.never_connected","license.trial_expiring","license.credentials_sent","license.archived","license.unarchived","contingent.created","contingent.renewed","contingent.updated","contingent.expired","session.started","session.ended","invoice.issued","invoice.paid","invoice.overdue","account.past_due","account.updated","account.suspended","account.reactivated","profile_change_request.submitted","profile_change_request.decided","api_key.created","api_key.updated","api_key.revoked","api_key.rotated","webhook.created","webhook.updated","webhook.deleted","webhook.failing","webhook.recovered","member.invited","member.updated","member.removed","device.claimed","device.released","ticket.opened","ticket.replied","ticket.status_changed","sales_quote.requested","sales_quote.released","sales_quote.revised","sales_quote.ordered","sales_quote.declined","sales_quote.canceled","sales_quote.fulfilled","product.created","product.updated","product.archived","tag.created","tag.updated","tag.deleted","bulk_operation.finished","document.shared","document.withdrawn"]},"License":{"type":"object","properties":{"id":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"status":{"type":"string","enum":["provisioning","active","suspended","expired","ended","removed","failed"]},"kind":{"type":"string","enum":["trial","paid"]},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"validFrom":{"type":"string"},"expiresAt":{"type":"string"},"accessEndsAt":{"type":"string"},"reinstatableUntil":{"type":["string","null"]},"holds":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","enum":["partner","rtkdata"]},"reason":{"type":["string","null"]},"since":{"type":"string"}},"required":["owner","reason","since"],"additionalProperties":false}},"pendingOperation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^op_[0-9a-f]{32}$"},"type":{"type":"string"},"startedAt":{"type":"string"}},"required":["id","type","startedAt"],"additionalProperties":false},{"type":"null"}]},"firstConnectionAt":{"type":["string","null"]},"lastConnectionAt":{"type":["string","null"]},"connectionDataAsOf":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"endReason":{"type":["string","null"]},"removedAt":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"autoRenew":{"type":"boolean"},"testClock":{"type":"string"},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"credentialType":{"anyOf":[{"type":"string","enum":["device","fleet"]},{"type":"null"}],"x-account-kinds":["enterprise"]},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"productId":{"anyOf":[{"type":"string","pattern":"^prd_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]},"archivedAt":{"x-account-kinds":["enterprise"],"type":["string","null"]},"complimentary":{"anyOf":[{"type":"object","properties":{"grantedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["grantedAt","note"],"additionalProperties":false},{"type":"null"}]},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}},"renewalPendingUntil":{"x-account-kinds":["enterprise"],"type":["string","null"]}},"required":["id","environment","status","kind","seats","validFrom","expiresAt","accessEndsAt","reinstatableUntil","holds","pendingOperation","firstConnectionAt","lastConnectionAt","connectionDataAsOf","endedAt","endReason","removedAt","metadata","autoRenew","sequence","createdAt","updatedAt","credentialType","contingentId","productId","archivedAt","complimentary","tagIds","renewalPendingUntil"],"additionalProperties":false},"LicenseDiagnostics":{"type":"object","properties":{"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"monitoring":{"type":"string","enum":["monitored","unmonitored","unavailable"]},"connected":{"type":["boolean","null"]},"parallelConnections":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"authFailures":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ggaReceived":{"type":["boolean","null"]},"lastSeenAt":{"type":["string","null"]},"windowDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"checkedAt":{"type":"string"}},"required":["licenseId","monitoring","connected","parallelConnections","authFailures","ggaReceived","lastSeenAt","windowDays","checkedAt"],"additionalProperties":false},"ExtensionRequest":{"type":"object","properties":{"id":{"type":"string","pattern":"^ext_[0-9a-f]{32}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"kind":{"type":"string","enum":["days","seats"]},"days":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"expiresAtBefore":{"type":["string","null"]},"seats":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"seatsBefore":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"reason":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected"]},"decisionReason":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"submittedAt":{"type":"string"}},"required":["id","licenseId","kind","days","expiresAtBefore","seats","seatsBefore","reason","status","decisionReason","decidedAt","submittedAt"],"additionalProperties":false},"Customer":{"type":"object","properties":{"id":{"type":"string","pattern":"^cus_[0-9a-f]{32}$"},"reference":{"type":["string","null"]},"email":{"type":["string","null"]},"name":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"archivedAt":{"type":["string","null"]},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"tagIds":{"type":"array","items":{"type":"string","pattern":"^tag_[0-9a-f]{32}$"}}},"required":["id","reference","email","name","metadata","archivedAt","sequence","createdAt","updatedAt","tagIds"],"additionalProperties":false},"Grant":{"type":"object","properties":{"id":{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"kind":{"type":"string","enum":["trial","paid","complimentary"]},"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":0,"maximum":9007199254740991},"purchaseMode":{"anyOf":[{"type":"string","enum":["months","days","expiresAt","trial","seats"]},{"type":"null"}]},"quantity":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"listAmount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discountRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amountEstimated":{"type":"boolean"},"billing":{"type":"string","enum":["chargeable","free","settled"]},"invoiceId":{"anyOf":[{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},{"type":"null"}]},"billedPeriod":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"origin":{"type":"string","enum":["api","portal","job","admin","migrated"]},"operationType":{"anyOf":[{"type":"string","enum":["create","convert","extend","add_seats","complimentary"]},{"type":"null"}]},"operationId":{"anyOf":[{"type":"string","pattern":"^op_[0-9a-f]{32}$"},{"type":"null"}]},"idempotencyKey":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"createdAt":{"type":"string"},"contingentId":{"anyOf":[{"type":"string","pattern":"^ctg_[0-9a-f]{32}$"},{"type":"null"}],"x-account-kinds":["enterprise"]}},"required":["id","licenseId","kind","role","baseGrantId","from","to","seats","purchaseMode","quantity","listAmount","discountRate","amount","amountEstimated","billing","invoiceId","billedPeriod","voidedAt","origin","operationType","operationId","idempotencyKey","metadata","createdAt","contingentId"],"additionalProperties":false},"Bill":{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-f]{32}$"},"source":{"type":"string","enum":["portal","legacy"]},"kind":{"type":"string","enum":["invoice","credit_note"]},"number":{"type":["string","null"]},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"status":{"type":"string","enum":["open","overdue","paid","void"]},"issuedAt":{"type":"string"},"dueAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"netAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"vatRate":{"type":"number","minimum":0,"maximum":1},"vatAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"grossAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"exchange":{"anyOf":[{"type":"object","properties":{"baseNetAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string"}},"required":["baseNetAmount","rate","rateDate"],"additionalProperties":false},{"type":"null"}]},"discount":{"anyOf":[{"type":"object","properties":{"tier":{"type":["string","null"]},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","rate"],"additionalProperties":false},{"type":"null"}]},"lineCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"hostedInvoiceUrl":{"type":["string","null"]},"pdfAvailable":{"type":"boolean"}},"required":["id","source","kind","number","period","status","issuedAt","dueAt","paidAt","currency","netAmount","vatRate","vatAmount","grossAmount","exchange","discount","lineCount","hostedInvoiceUrl","pdfAvailable"],"additionalProperties":false},"Quote":{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},"from":{"type":"string"},"to":{"type":"string"},"billableSeats":{"type":"integer","minimum":1,"maximum":9007199254740991},"priceBasis":{"type":"string"},"priceListVersion":{"type":["string","null"]},"grants":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["base","added_seats"]},"baseGrantId":{"anyOf":[{"type":"string","pattern":"^grt_[0-9a-f]{32}$"},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"seats":{"type":"integer","minimum":1,"maximum":9007199254740991},"priceListVersion":{"type":["string","null"]},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false}},"required":["role","baseGrantId","from","to","seats","priceListVersion","amount"],"additionalProperties":false}}},"required":["amount","from","to","billableSeats","priceBasis","priceListVersion","grants"],"additionalProperties":false},"AccountPricing":{"type":"object","properties":{"billingCurrency":{"type":"string","minLength":3,"maxLength":3,"description":"The currency RTKdata invoices this account in. Prices are kept in USD, every money value names its own currency; a bill converts at the ECB reference rate of its billing day."},"priceList":{"anyOf":[{"type":"object","properties":{"version":{"type":"string"},"effectiveFrom":{"type":"string"}},"required":["version","effectiveFrom"],"additionalProperties":false},{"type":"null"}]},"perSeat":{"type":"object","properties":{"annual":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"monthly":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["annual","monthly"],"additionalProperties":false},"discount":{"type":"object","properties":{"model":{"type":"string","enum":["tiered","flat"]},"rate":{"type":"number","minimum":0,"maximum":1},"tier":{"anyOf":[{"type":"string","enum":["tier_1","tier_2","tier_3"]},{"type":"null"}]},"activeLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"next":{"anyOf":[{"type":"object","properties":{"tier":{"type":"string","enum":["tier_1","tier_2","tier_3"]},"minLicenses":{"type":"integer","minimum":0,"maximum":9007199254740991},"rate":{"type":"number","minimum":0,"maximum":1}},"required":["tier","minLicenses","rate"],"additionalProperties":false},{"type":"null"}]}},"required":["model","rate","tier","activeLicenses","next"],"additionalProperties":false},"asOf":{"type":"string"}},"required":["billingCurrency","priceList","perSeat","discount","asOf"],"additionalProperties":false},"AccountCapabilities":{"type":"object","properties":{"environment":{"type":"string","enum":["test","live"]},"stage":{"type":"string","enum":["current","reminder","credit_hold","renewals_blocked","service_cut"]},"pastDue":{"type":"boolean"},"purchases":{"type":"object","properties":{"allowed":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}},"refused":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}}},"required":["allowed","refused"],"additionalProperties":false},"refusedWith":{"anyOf":[{"type":"string","const":"account_past_due"},{"type":"null"}]},"stages":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["current","reminder","credit_hold","renewals_blocked","service_cut"]},"fromDaysOverdue":{"type":"integer","minimum":0,"maximum":9007199254740991},"refuses":{"type":"array","items":{"type":"string","enum":["create","trial","convert","extend","add_seats"]}},"decidedByRtkdata":{"type":"boolean"}},"required":["stage","fromDaysOverdue","refuses","decidedByRtkdata"],"additionalProperties":false}},"limits":{"type":"object","properties":{"months":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"days":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"trialDays":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"seats":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"amounts":{"type":"object","properties":{"maxPerCall":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maxUnbilled":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unbilled":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"maxStorable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["maxPerCall","maxUnbilled","unbilled","maxStorable"],"additionalProperties":false}},"required":["months","days","trialDays","seats","amounts"],"additionalProperties":false},"credentialTypes":{"anyOf":[{"type":"object","properties":{"allowed":{"type":"array","items":{"type":"string","enum":["device","fleet"]}},"refused":{"type":"array","items":{"type":"string","enum":["device","fleet"]}}},"required":["allowed","refused"],"additionalProperties":false},{"type":"null"}],"x-account-kinds":["enterprise"]},"apiKeys":{"type":"object","properties":{"rateLimitTierCeiling":{"type":"string","enum":["standard","elevated","high"]},"rateLimitTiers":{"type":"array","items":{"type":"string","enum":["standard","elevated","high"]}}},"required":["rateLimitTierCeiling","rateLimitTiers"],"additionalProperties":false}},"required":["environment","stage","pastDue","purchases","refusedWith","stages","limits","credentialTypes","apiKeys"],"additionalProperties":false},"Webhook":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"string","enum":["v1","v2"]},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["active","failing","disabled"]},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"lastTestAt":{"type":["string","null"]},"lastTestResult":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}]},"lastTestStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTestError":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","url","events","payloadVersion","enabled","status","metadata","lastTestAt","lastTestResult","lastTestStatusCode","lastTestError","createdAt","updatedAt"],"additionalProperties":false},"Delivery":{"type":"object","properties":{"id":{"type":"string","pattern":"^del_[0-9a-f]{32}$"},"eventId":{"type":"string"},"eventType":{"type":"string"},"status":{"type":"string","enum":["pending","sending","delivered","failed","suppressed"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"failureReason":{"type":["string","null"]},"nextAttemptAt":{"type":["string","null"]},"lastAttemptAt":{"type":["string","null"]},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","eventId","eventType","status","attempts","lastStatusCode","failureReason","nextAttemptAt","lastAttemptAt","deliveredAt","createdAt"],"additionalProperties":false},"ApiKey":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"label":{"type":"string"},"principal":{"type":["string","null"]},"preview":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","expired","revoked"]},"expiresAt":{"type":["string","null"]},"ipAllowlist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"object","properties":{"tier":{"type":"string"},"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tier","perMinute"],"additionalProperties":false},"rotatedFromId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"rotatedToId":{"anyOf":[{"type":"string","pattern":"^key_[0-9a-f]{32}$"},{"type":"null"}]},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","environment","label","principal","preview","scopes","status","expiresAt","ipAllowlist","rateLimit","rotatedFromId","rotatedToId","lastUsedAt","revokedAt","createdAt","updatedAt"],"additionalProperties":false},"ApiRequest":{"type":"object","properties":{"id":{"type":"string","pattern":"^arq_[0-9a-f]{32}$"},"requestId":{"type":["string","null"]},"method":{"type":"string"},"route":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"environment":{"type":"string","enum":["test","live"]},"latencyMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"keyId":{"type":"string","pattern":"^key_[0-9a-f]{32}$"},"idempotencyKey":{"type":["string","null"]},"licenseId":{"anyOf":[{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},{"type":"null"}]},"occurredAt":{"type":"string"}},"required":["id","requestId","method","route","statusCode","environment","latencyMs","keyId","idempotencyKey","licenseId","occurredAt"],"additionalProperties":false},"Session":{"type":"object","properties":{"id":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"caster":{"type":"string","enum":["rtkdata","legacy"]},"status":{"type":"string","enum":["open","ended"]},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"durationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"mountpoint":{"type":["string","null"]},"outcome":{"type":["string","null"]},"fixRate":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},{"type":"null"}]},"syncedAt":{"type":["string","null"]}},"required":["id","licenseId","caster","status","startedAt","endedAt","durationSeconds","mountpoint","outcome","fixRate","position","syncedAt"],"additionalProperties":false},"SessionTrack":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^ses_[A-Za-z0-9_-]{2,256}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"startedAt":{"type":"string"},"endedAt":{"type":["string","null"]},"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"position":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"],"additionalProperties":false},"fix":{"type":"string","enum":["fixed","float","dgps","single","no_fix"]},"satellites":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","position","fix","satellites"],"additionalProperties":false}}},"required":["sessionId","licenseId","startedAt","endedAt","points"],"additionalProperties":false},"Product":{"type":"object","properties":{"id":{"type":"string","enum":["ntrip_license"]},"name":{"type":"string"},"description":{"type":"string"},"kinds":{"type":"array","items":{"type":"string","enum":["trial","paid"]}},"trial":{"type":"object","properties":{"days":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days","seats"],"additionalProperties":false},"terms":{"type":"object","properties":{"oneOf":{"type":"array","items":{"type":"string","enum":["months","days","expiresAt"]}},"months":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"days":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"expiresAtDays":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false}},"required":["oneOf","months","days","expiresAtDays"],"additionalProperties":false},"seats":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"pricing":{"type":"object","properties":{"basis":{"type":"string","const":"per_seat"},"annualRateMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ratesUrl":{"type":"string"}},"required":["basis","annualRateMonths","ratesUrl"],"additionalProperties":false},"mountpoints":{"type":"array","items":{"type":"string"}},"defaultMountpoint":{"type":"string"}},"required":["id","name","description","kinds","trial","terms","seats","pricing","mountpoints","defaultMountpoint"],"additionalProperties":false},"Mountpoint":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"},"resolution":{"type":"string","enum":["by_rover_location","fixed"]},"frame":{"type":"string"}},"required":["name","default","resolution","frame"],"additionalProperties":false},"Caster":{"type":"object","properties":{"id":{"type":"string","enum":["rtkdata"]},"name":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"default":{"type":"boolean"},"mountpoints":{"type":"array","items":{"type":"string"}},"position":{"type":"object","properties":{"ggaRequired":{"type":"boolean"},"deadlineSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ggaRequired","deadlineSeconds"],"additionalProperties":false}},"required":["id","name","host","port","default","mountpoints","position"],"additionalProperties":false},"Coverage":{"type":"object","properties":{"covered":{"type":"boolean"},"level":{"type":"string","enum":["precise","standard","none"]},"zoneKm":{"type":["number","null"]},"revision":{"type":"string"},"generatedAt":{"type":"string"}},"required":["covered","level","zoneKm","revision","generatedAt"],"additionalProperties":false},"Device":{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"environment":{"type":"string","enum":["test","live"]},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"slotId":{"anyOf":[{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},{"type":"null"}]},"serial":{"type":"string"},"label":{"type":["string","null"]},"status":{"type":"string","enum":["active","released"]},"claimedAt":{"type":"string"},"lastSeenAt":{"type":["string","null"]},"releasedAt":{"type":["string","null"]}},"required":["id","environment","licenseId","slotId","serial","label","status","claimedAt","lastSeenAt","releasedAt"],"additionalProperties":false},"Slot":{"type":"object","properties":{"id":{"type":"string","pattern":"^slt_[0-9a-f]{32}$"},"licenseId":{"type":"string","pattern":"^lic_[0-9a-f]{32}$"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"label":{"type":["string","null"]},"status":{"type":"string","enum":["free","assigned"]},"device":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^dev_[0-9a-f]{32}$"},"serial":{"type":"string"},"label":{"type":["string","null"]}},"required":["id","serial","label"],"additionalProperties":false},{"type":"null"}]},"lastActiveAt":{"type":["string","null"]}},"required":["id","licenseId","number","label","status","device","lastActiveAt"],"additionalProperties":false}},"x-errors":{"invalid_request":{"status":400,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#invalid_request"},"invalid_api_key":{"status":401,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#invalid_api_key"},"invalid_client":{"status":401,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#invalid_client"},"account_past_due":{"status":402,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#account_past_due"},"insufficient_scope":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#insufficient_scope"},"api_disabled":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#api_disabled"},"test_only":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#test_only"},"live_only":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#live_only"},"ip_not_allowed":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#ip_not_allowed"},"forbidden":{"status":403,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#forbidden"},"license_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#license_not_found"},"event_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#event_not_found"},"webhook_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#webhook_not_found"},"delivery_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#delivery_not_found"},"bill_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#bill_not_found"},"api_key_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#api_key_not_found"},"api_request_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#api_request_not_found"},"session_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#session_not_found"},"notification_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#notification_not_found"},"member_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#member_not_found"},"device_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#device_not_found"},"slot_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#slot_not_found"},"claim_code_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#claim_code_not_found"},"product_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#product_not_found"},"tag_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#tag_not_found"},"bulk_operation_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#bulk_operation_not_found","x-account-kinds":["enterprise"]},"sales_quote_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#sales_quote_not_found","x-account-kinds":["enterprise"]},"ticket_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#ticket_not_found"},"document_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#document_not_found","x-account-kinds":["enterprise"]},"profile_change_request_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#profile_change_request_not_found"},"contingent_not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#contingent_not_found","x-account-kinds":["enterprise"]},"not_found":{"status":404,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#not_found"},"idempotency_key_reused":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#idempotency_key_reused"},"idempotency_key_legacy":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#idempotency_key_legacy"},"operation_in_progress":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#operation_in_progress"},"billing_limit_reached":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#billing_limit_reached"},"trial_already_used":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#trial_already_used"},"username_taken":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#username_taken"},"member_already_exists":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#member_already_exists"},"invalid_state":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#invalid_state"},"reinstate_required":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#reinstate_required"},"hold_by_rtkdata":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#hold_by_rtkdata"},"claim_code_used":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#claim_code_used"},"slots_full":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#slots_full"},"pdf_not_ready":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#pdf_not_ready"},"not_available_for_account":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#not_available_for_account"},"setup_incomplete":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#setup_incomplete"},"tag_name_taken":{"status":409,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#tag_name_taken"},"tag_limit_reached":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#tag_limit_reached"},"conflict":{"status":409,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#conflict"},"license_removed":{"status":410,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#license_removed"},"cursor_expired":{"status":410,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#cursor_expired"},"event_history_expired":{"status":410,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#event_history_expired"},"validation_failed":{"status":422,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#validation_failed"},"rate_limited":{"status":429,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#rate_limited"},"invite_cooldown":{"status":429,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#invite_cooldown"},"internal_error":{"status":500,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#internal_error"},"provisioning_failed":{"status":502,"consumesKey":true,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#provisioning_failed"},"outcome_unknown":{"status":503,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#outcome_unknown"},"caster_unavailable":{"status":503,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#caster_unavailable"},"stripe_unavailable":{"status":503,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#stripe_unavailable","x-account-kinds":["enterprise"]},"coverage_unavailable":{"status":503,"consumesKey":false,"docUrl":"https://docs.rtkdata.com/enterprise-portal/api/api-guide/api-errors#coverage_unavailable"}},"x-scopes":["account:read","account:write","documents:read","licenses:read","licenses:provision","licenses:write","credentials:read","bills:read","quotes:read","quotes:write","tickets:read","tickets:write","events:read","stats:read","requests:read","sessions:read","webhooks:manage","keys:manage","members:manage","notifications:read","notifications:write","alerts:manage"]}}