Nopaque Limited API Keys API

Workspace-scoped API key management.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

POST /workspaces/{workspaceId}/api-keys Create a new API key for the workspace #
GET /workspaces/{workspaceId}/api-keys List API keys for the workspace (no secrets) #
PATCH /workspaces/{workspaceId}/api-keys/{keyId} Edit a key's label, scopes and/or expiry #
POST /workspaces/{workspaceId}/api-keys/{keyId}/rotate Replace a key with a successor, with an overlap window #
PATCH /workspaces/{workspaceId}/api-keys/{keyId}/revoke Revoke an API key (irreversible) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nopaque-co-uk:nopaque-co-uk-api-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nopaque-co-uk-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nopaque Co Uk API Keys API
  version: 0.3.0
  contact:
    name: Nopaque support
    email: support@nopaque.co.uk
    url: https://www.nopaque.co.uk/docs
  license:
    name: Proprietary
    url: https://www.nopaque.co.uk/terms
  termsOfService: https://www.nopaque.co.uk/terms
  description: 'Operations tagged API Keys across 2 of this provider''s published API definitions: nopaque-co-uk-openapi.json, nopaque-co-uk-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.nopaque.co.uk
  description: 'Nopaque API gateway (production). Use the `apiKey` security scheme — set `x-api-key: <key>`

    header on every request. Workspace-scoped operations are isolated to the workspace the API

    key was created in.

    '
- url: https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com
  description: 'Nopaque Auth gateway (production). Use the `cognitoBearer` security scheme — set

    `Authorization: Bearer <jwt>` header on every request. JWTs are issued by Cognito user pool

    sign-in. NOTE: this gateway does NOT have a custom domain today.

    '
tags:
- name: API Keys
  description: Workspace-scoped API key management.
paths:
  /workspaces/{workspaceId}/api-keys:
    parameters:
    - in: path
      name: workspaceId
      required: true
      schema:
        type: string
        format: uuid
      description: Workspace identifier the keys are scoped to.
      example: <workspace-id>
    post:
      operationId: createApiKey
      summary: Create a new API key for the workspace
      description: 'Creates an API key and returns the raw secret EXACTLY ONCE. Subsequent reads

        return ONLY the prefix and metadata — the platform stores a SHA-256 hash and

        cannot recover lost keys. Store the `rawKey` value immediately; lost keys must

        be revoked and reissued.


        Constraints (enforced server-side):

        - Caller must be `owner` or `admin` on the workspace (403 otherwise).

        - Maximum active keys per workspace by tier: free 2, beta 2, starter 2, team 10,

        enterprise unlimited (400 if at the cap — revoke unused keys first).


        The `rawKey` format is `nq_` (67 chars total). Use it as the

        `x-api-key` header value when calling the api-key gateway

        (`https://api.nopaque.co.uk`).


        Auth gateway — use `Authorization: Bearer `.'
      tags:
      - API Keys
      security:
      - cognitoBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
            examples:
              ciRunner:
                summary: CI runner key
                value:
                  label: CI runner
      responses:
        '201':
          description: 'API key created. The `rawKey` field is the FULL SECRET and is returned only on

            this response. Store it immediately and securely.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiKeyResponse'
              examples:
                created:
                  summary: Newly created key
                  value:
                    id: <api-key-id>
                    keyPrefix: nq_a1b2c
                    label: CI runner
                    createdAt: '2026-05-13T10:00:00Z'
                    rawKey: <api-key-secret-shown-only-once>
        '400':
          description: 'Validation failure — missing body, invalid JSON, missing/empty label,

            label > 100 chars, OR workspace already has 10 active keys.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `Authorization` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'One of:

            - Caller is not `owner`/`admin` on this workspace.

            - Workspace is on `free` tier (API key access requires `starter` or above).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (default 50 req/s, burst 100 — auth gateway throttle).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      operationId: listApiKeys
      summary: List API keys for the workspace (no secrets)
      description: 'Returns metadata for all API keys in the workspace (both `active` and `revoked`

        depending on handler scope — see `ApiKey.status`). The response NEVER includes

        the raw secret — only the `keyPrefix` is exposed for display.


        Caller must be `owner` or `admin` (403 otherwise). Every tier, Free included, can

        list, create (up to its key limit) and revoke keys.


        Auth gateway — use `Authorization: Bearer `.'
      tags:
      - API Keys
      security:
      - cognitoBearer: []
      responses:
        '200':
          description: Array of API key metadata (no secrets).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListApiKeysResponse'
        '400':
          description: Missing `workspaceId` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `Authorization` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller is not `owner`/`admin` on this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (default 50 req/s, burst 100 — auth gateway throttle).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.nopaque.co.uk
      description: 'Nopaque API gateway (production). Use the `apiKey` security scheme — set `x-api-key: <key>`

        header on every request. Workspace-scoped operations are isolated to the workspace the API

        key was created in.

        '
    - url: https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com
      description: 'Nopaque Auth gateway (production). Use the `cognitoBearer` security scheme — set

        `Authorization: Bearer <jwt>` header on every request. JWTs are issued by Cognito user pool

        sign-in. NOTE: this gateway does NOT have a custom domain today.

        '
  /workspaces/{workspaceId}/api-keys/{keyId}:
    parameters:
    - in: path
      name: workspaceId
      required: true
      schema:
        type: string
        format: uuid
      description: Workspace identifier.
      example: <workspace-id>
    - in: path
      name: keyId
      required: true
      schema:
        type: string
        format: uuid
      description: API key record identifier (NOT the secret).
      example: <api-key-id>
    patch:
      operationId: updateApiKey
      summary: Edit a key's label, scopes and/or expiry
      description: 'Edits an existing key in place. All three body fields are optional and independent;

        an absent field means "leave it alone". A body containing **none** of them is a 400 —

        it asks for nothing.


        - `label` — 1-100 characters after trimming.

        - `scopes` — replaces the key''s scope list wholesale. `[]` removes all restrictions

        (full access). **Broadening is permitted, not just narrowing** — anyone who can

        widen a key can already mint a fresh one at full scope, so the audit trail is the

        control rather than a refusal.

        - `expiresAt` — three-valued. Absent leaves the current expiry untouched, `null`

        clears it (never expires), and an ISO-8601 timestamp **in the future** sets it.

        A past or unparseable date is a 400.


        Changes take effect on the key''s **next request** — the api-key authorizer caches

        nothing, so there is no stale window and no need to rotate or redeploy.


        Caller must be `owner` or `admin` (403 otherwise). There is deliberately **no tier

        gate** (D-16): a downgraded workspace must still be able to restrict a key it can no

        longer use.


        Auth gateway — use `Authorization: Bearer `.'
      tags:
      - API Keys
      security:
      - cognitoBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateApiKeyRequest'
      responses:
        '200':
          description: 'Key updated. The body echoes **only the fields that changed**, not the whole key.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateApiKeyResponse'
        '400':
          description: 'Body contained none of `label`/`scopes`/`expiresAt`; or an invalid label, an

            unrecognised scope string, or an `expiresAt` that is unparseable or in the past.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `Authorization` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller is not `owner`/`admin` on this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Key not found. This response deliberately does **not** distinguish between an

            unknown key, another workspace''s key, and a revoked key — distinguishing them

            would confirm the existence of another workspace''s key to someone guessing ids.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (default 50 req/s, burst 100 — auth gateway throttle).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.nopaque.co.uk
      description: 'Nopaque API gateway (production). Use the `apiKey` security scheme — set `x-api-key: <key>`

        header on every request. Workspace-scoped operations are isolated to the workspace the API

        key was created in.

        '
    - url: https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com
      description: 'Nopaque Auth gateway (production). Use the `cognitoBearer` security scheme — set

        `Authorization: Bearer <jwt>` header on every request. JWTs are issued by Cognito user pool

        sign-in. NOTE: this gateway does NOT have a custom domain today.

        '
  /workspaces/{workspaceId}/api-keys/{keyId}/rotate:
    parameters:
    - in: path
      name: workspaceId
      required: true
      schema:
        type: string
        format: uuid
      description: Workspace identifier.
      example: <workspace-id>
    - in: path
      name: keyId
      required: true
      schema:
        type: string
        format: uuid
      description: Identifier of the key being replaced.
      example: <api-key-id>
    post:
      operationId: rotateApiKey
      summary: Replace a key with a successor, with an overlap window
      description: 'Mints a **successor** that inherits the predecessor''s label and scopes, and schedules

        the predecessor to expire `overlapDays` from now. Both keys authenticate during the

        overlap, so the replacement can be deployed on your own schedule with no outage and

        no coordinated cutover.


        `label` and `scopes` are inherited and cannot be set here — edit them afterwards with

        `PATCH /workspaces/{workspaceId}/api-keys/{keyId}` if they need to change. The

        successor starts with **no expiry of its own**; set one the same way.


        **The workspace key limit is deliberately NOT enforced on this route.** A workspace

        already at or over its limit is precisely the case rotation exists for — gating it

        would leave the customer who most needs to replace a key unable to. A successor also

        does not count toward the limit while its predecessor is still live.


        Rotating a key that has already been rotated is a **409**, naming the successor.

        Rotations do not chain.


        As with creation, `rawKey` is returned **exactly once**.


        Auth gateway — use `Authorization: Bearer `.'
      tags:
      - API Keys
      security:
      - cognitoBearer: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateApiKeyRequest'
      responses:
        '201':
          description: 'Successor created. **The one and only time `rawKey` is returned** — store it now.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateApiKeyResponse'
        '400':
          description: '`overlapDays` is not an integer between 0 and 30.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `Authorization` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Caller is not `owner`/`admin` on this workspace, or the workspace is on the free

            tier. Rotation mints a credential, so it follows creation''s tier gate rather than

            revocation''s.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Key not found (same non-disclosure rule as the other key routes), or a concurrent

            write won the race.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: This key has already been rotated. The response names its successor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (default 50 req/s, burst 100 — auth gateway throttle).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.nopaque.co.uk
      description: 'Nopaque API gateway (production). Use the `apiKey` security scheme — set `x-api-key: <key>`

        header on every request. Workspace-scoped operations are isolated to the workspace the API

        key was created in.

        '
    - url: https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com
      description: 'Nopaque Auth gateway (production). Use the `cognitoBearer` security scheme — set

        `Authorization: Bearer <jwt>` header on every request. JWTs are issued by Cognito user pool

        sign-in. NOTE: this gateway does NOT have a custom domain today.

        '
  /workspaces/{workspaceId}/api-keys/{keyId}/revoke:
    parameters:
    - in: path
      name: workspaceId
      required: true
      schema:
        type: string
        format: uuid
      description: Workspace identifier.
      example: <workspace-id>
    - in: path
      name: keyId
      required: true
      schema:
        type: string
        format: uuid
      description: API key record identifier (NOT the secret).
      example: <api-key-id>
    patch:
      operationId: revokeApiKey
      summary: Revoke an API key (irreversible)
      description: 'Sets the key''s status to `revoked`. Revocation is IRREVERSIBLE — a revoked key

        cannot be re-activated. To restore access, create a new key.


        Caller must be `owner` or `admin` (403 otherwise). Per D-16, revocation is

        permitted even on downgraded workspaces (the tier gate applies to NEW key

        creation only).


        Auth gateway — use `Authorization: Bearer `.'
      tags:
      - API Keys
      security:
      - cognitoBearer: []
      responses:
        '200':
          description: Key revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeApiKeyResponse'
        '400':
          description: Missing `workspaceId` or `keyId` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `Authorization` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller is not `owner`/`admin` on this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: API key not found (or already revoked — handler is non-idempotent on missing keys).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (default 50 req/s, burst 100 — auth gateway throttle).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.nopaque.co.uk
      description: 'Nopaque API gateway (production). Use the `apiKey` security scheme — set `x-api-key: <key>`

        header on every request. Workspace-scoped operations are isolated to the workspace the API

        key was created in.

        '
    - url: https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com
      description: 'Nopaque Auth gateway (production). Use the `cognitoBearer` security scheme — set

        `Authorization: Bearer <jwt>` header on every request. JWTs are issued by Cognito user pool

        sign-in. NOTE: this gateway does NOT have a custom domain today.

        '
components:
  schemas:
    UpdateApiKeyResponse:
      type: object
      description: 'Response from `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`. Echoes the key id

        plus **only the fields that were changed** — it is not a full key representation.

        '
      required:
      - id
      properties:
        id:
          type: string
          format: uuid
          example: <api-key-id>
        label:
          type: string
          example: CI runner (prod)
        scopes:
          type: array
          items:
            type: string
          example:
          - mapping:read
        expiresAt:
          type: string
          format: date-time
          nullable: true
          example: '2027-01-01T00:00:00Z'
    CreateApiKeyResponse:
      type: object
      description: 'Response from `POST /workspaces/{workspaceId}/api-keys`. **This is the ONE AND ONLY

        TIME the raw secret (`rawKey`) is returned by the platform.** Store it securely

        immediately — subsequent reads (`GET /workspaces/{workspaceId}/api-keys`) return

        ONLY the prefix and metadata. The platform stores a SHA-256 hash and cannot

        recover lost keys; lost keys must be revoked and reissued.


        The `rawKey` format is `nq_<64-hex-chars>` (67 chars total). Use it as the

        `x-api-key` request header value when calling the api-key gateway

        (`https://api.nopaque.co.uk`).

        '
      required:
      - id
      - keyPrefix
      - label
      - createdAt
      - rawKey
      properties:
        id:
          type: string
          format: uuid
          example: <api-key-id>
        keyPrefix:
          type: string
          example: nq_a1b2c
        label:
          type: string
          example: CI runner
        createdAt:
          type: string
          format: date-time
          example: '2026-05-13T10:00:00Z'
        rawKey:
          type: string
          description: 'THE FULL SECRET. Returned ONLY on creation. Store immediately and never again.

            Use as the `x-api-key` header on api-key gateway requests.

            '
          example: <api-key-secret-shown-only-once>
    RevokeApiKeyResponse:
      type: object
      description: 'Response from `PATCH /workspaces/{workspaceId}/api-keys/{keyId}/revoke`. Revocation

        is irreversible — a revoked key cannot be re-activated; issue a new key instead.

        '
      required:
      - id
      - status
      properties:
        id:
          type: string
          format: uuid
          example: <api-key-id>
        status:
          type: string
          enum:
          - revoked
          example: revoked
    UpdateApiKeyRequest:
      type: object
      description: 'PATCH body for `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`. Every field is

        optional and independent — send only what should change. A body with none of them

        is a 400.

        '
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 100
          description: New label. Trimmed before storage.
          example: CI runner (prod)
        scopes:
          type: array
          description: 'Replaces the key''s scope list wholesale. `[]` removes all restrictions.

            Each entry is `*` (full access), `<domain>:*`, `<domain>:read` or

            `<domain>:write`. Duplicates are collapsed. An unrecognised scope is refused at

            write time rather than stored — an unknown scope matches no route, so accepting

            a typo would mint a key that silently reaches nothing.

            '
          items:
            type: string
            enum:
            - '*'
            - mapping:*
            - mapping:read
            - mapping:write
            - testing:*
            - testing:read
            - testing:write
            - digital:*
            - digital:read
            - digital:write
            - data:*
            - data:read
            - data:write
            - audio:*
            - audio:read
            - audio:write
            - scheduling:*
            - scheduling:read
            - scheduling:write
            - billing:*
            - billing:read
            - billing:write
          example:
          - mapping:read
          - testing:*
        expiresAt:
          type: string
          format: date-time
          nullable: true
          description: 'Three-valued. Omit to leave the current expiry alone, send `null` to clear it

            (never expires), or send an ISO-8601 timestamp in the future to set it. A past

            or unparseable value is a 400.

            '
          example: '2027-01-01T00:00:00Z'
    ListApiKeysResponse:
      type: object
      description: 'Response from `GET /workspaces/{workspaceId}/api-keys`. Items contain metadata only —

        NO `rawKey` field. Used for display/management; per D-16 of the api-keys phase, the

        list is returned even for downgraded workspaces. Key creation is limited by count per tier.

        '
      required:
      - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ApiKey'
    RotateApiKeyRequest:
      type: object
      description: 'Optional POST body for `POST /workspaces/{workspaceId}/api-keys/{keyId}/rotate`.

        The whole body may be omitted to accept the default overlap.

        '
      properties:
        overlapDays:
          type: integer
          minimum: 0
          maximum: 30
          default: 7
          description: 'How long the predecessor keeps working after the successor is minted. `0` is an

            immediate cutover — the old key stops authenticating at once, so only use it

            when the replacement is already deployed.

            '
          example: 7
    CreateApiKeyRequest:
      type: object
      description: 'POST body for `POST /workspaces/{workspaceId}/api-keys`. `label` is the only

        required field. Constraints:

        - Caller must be `owner` or `admin` on the workspace (403 otherwise).

        - Workspace must be on `starter` tier or above (403 + upgrade-required message otherwise).

        - Maximum 10 active keys per workspace (400 otherwise — revoke unused keys first).

        '
      required:
      - label
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 100
          description: 'Human-readable label for the key (e.g. `"CI runner"`, `"local dev"`).

            Editable later via `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`.

            '
          example: CI runner
    Error:
      type: object
      description: "An error body carries its human-readable message in ONE of two fields, depending on\nwhat produced it. Read `error` first, then `message`:\n\n- `error`: errors raised by the API's own handlers. Most operations use this.\n- `message`: errors produced by the API gateway itself (401 from the authorizer,\n  429 from throttling) and by a few older handlers.\n\nThe error CODE is conveyed by the HTTP status code; this object intentionally does\nNOT include a machine-readable `code` field today.\n"
      anyOf:
      - required:
        - error
      - required:
        - message
      properties:
        error:
          type: string
          description: Human-readable error message from an API handler.
          example: Survey test config not found
        message:
          type: string
          description: Human-readable error message from the gateway or an older handler.
          example: Unauthorized
    ApiKey:
      type: object
      description: 'API key metadata. **The raw secret is NEVER included on this entity** — only the

        first 8 characters (`keyPrefix`, e.g. `nq_a1b2c`) are exposed for display purposes.

        Secrets are stored hashed (SHA-256); the platform CANNOT recover lost keys —

        revoke and reissue.

        '
      required:
      - id
      - keyPrefix
      - label
      - createdAt
      - status
      properties:
        id:
          type: string
          format: uuid
          description: Internal API key record identifier (NOT the secret).
          example: <api-key-id>
        workspaceId:
          type: string
          format: uuid
          description: Workspace this key is scoped to. Calls inherit the workspace's tier and isolation.
          example: <workspace-id>
        keyPrefix:
          type: string
          minLength: 8
          maxLength: 8
          description: First 8 characters of the raw key (e.g. `nq_a1b2c`). Used for display only.
          example: nq_a1b2c
        label:
          type: string
          maxLength: 100
          description: 'Human-readable label. Editable after creation via

            `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`.

            '
          example: CI runner
        createdBy:
          type: string
          format: uuid
          description: User who created the key.
          example: <user-id>
        createdAt:
          type: string
          format: date-time
          example: '2026-05-13T10:00:00Z'
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
          description: Last time the key was successfully validated by the api-key authorizer. `null` if never used.
          example: null
        status:
          type: string
          enum:
          - active
          - revoked
          example: active
    RotateApiKeyResponse:
      type: object
      description: 'Response from `POST /workspaces/{workspaceId}/api-keys/{keyId}/rotate`. A superset of

        `CreateApiKeyResponse`, so a one-time-reveal UI can render either without branching.

        **This is the only time `rawKey` is returned.**

        '
      required:
      - id
      - keyPrefix
      - label
      - createdAt
      - rawKey
      - rotatedFrom
      - predecessorExpiresAt
      properties:
        id:
          type: string
          format: uuid
          description: Identifier of the NEW key.
          example: <api-key-id>
        keyPrefix:
          type: string
          example: nq_d4e5f
        label:
          type: string
          description: Inherited from the predecessor.
          example: CI runner
        createdAt:
          type: string
          format: date-time
          example: '2026-08-30T10:00:00Z'
        rawKey:
          type: string
          description: 'THE FULL SECRET of the successor. Returned ONLY here. Store it immediately —

            the platform keeps only a SHA-256 hash and cannot recover it.

            '
          example: <api-key-secret-shown-only-once>
        rotatedFrom:
          type: string
          format: uuid
          description: Identifier of the key this one replaces.
          example: <api-key-id>
        predecessorExpiresAt:
          type: string
          format: date-time
          description: 'When the replaced key stops authenticating. Deploy the new secret before this.

            '
          example: '2026-09-06T10:00:00Z'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Workspace-scoped API key. Create via `POST /workspaces/{workspaceId}/api-keys`

        (on the auth gateway). Rate-limited per workspace tier.

        '
    cognitoBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Cognito-issued JWT bearer token. Used by the first-party web app; not typically

        used by external integrators (use `apiKey` instead).

        '
x-refined-from:
- nopaque-co-uk-openapi.json
- nopaque-co-uk-openapi.json
x-provenance:
  method: harvested
  publisher: Nopaque Limited
  source: https://www.nopaque.co.uk/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)