Nopaque Limited Profiles API

Reusable voice and data profiles for test configuration.

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 10

GET /profiles List profiles for the current workspace #
POST /profiles Create a new profile #
GET /profiles/parameters List all unique parameter labels across profiles (workspace-wide) #
GET /profiles/by-parameters Find profiles that satisfy ALL specified parameter labels #
GET /profiles/{id} Get a profile by id #
PUT /profiles/{id} Update a profile #
DELETE /profiles/{id} Delete a profile (and all of its items) #
POST /profiles/{id}/items Add an item (voice or data) to a profile #
PUT /profiles/{id}/items/{itemId} Update label/description of a profile item #
DELETE /profiles/{id}/items/{itemId} Remove an item from a profile #

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-profiles-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-profiles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nopaque Co Uk Profiles 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 Profiles 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: Profiles
  description: Reusable voice and data profiles for test configuration.
paths:
  /profiles:
    get:
      operationId: listProfiles
      summary: List profiles for the current workspace
      description: 'Returns workspace-scoped profiles newest-first. Default page size 50; cap with

        `limit`. Each profile carries its full `items[]` array — there is no separate

        "list items" endpoint.'
      tags:
      - Profiles
      security:
      - apiKey: []
      parameters:
      - in: query
        name: limit
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 1000
          default: 50
        description: Max profiles to return.
        example: 50
      responses:
        '200':
          description: List of profiles (may be empty).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListProfilesResponse'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createProfile
      summary: Create a new profile
      description: 'Creates an empty profile (no items). Add items via `POST /profiles/{id}/items`.


        Returns `201 Created` with the created profile.'
      tags:
      - Profiles
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProfileRequest'
            examples:
              basic:
                summary: Minimal profile
                value:
                  name: <profile-name>
                  description: Customer login credentials profile
      responses:
        '201':
          description: Profile created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: Missing required `name` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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.

        '
  /profiles/parameters:
    get:
      operationId: listProfileParameters
      summary: List all unique parameter labels across profiles (workspace-wide)
      description: 'Returns the workspace-wide index of parameter labels — for each label, the

        number of profiles that define it and the list of those profile ids. Returned

        most-common-first.


        Used by the parameterised-test UI to surface which parameters are available

        (and which profiles satisfy each). NOTE: this endpoint scans up to 1000

        profiles; workspaces with more than 1000 profiles will see an incomplete view.'
      tags:
      - Profiles
      security:
      - apiKey: []
      responses:
        '200':
          description: Workspace-wide parameter index (may be empty).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListProfileParametersResponse'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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.

        '
  /profiles/by-parameters:
    get:
      operationId: findProfilesByParameters
      summary: Find profiles that satisfy ALL specified parameter labels
      description: 'Returns profiles whose `items[].label` set is a SUPERSET of the supplied labels

        (intersection match, not union). Used by parameterised-test wizards to surface

        which profiles can satisfy a test config''s parameter requirements.


        Supply labels via a comma-separated query parameter; whitespace around each label

        is trimmed.'
      tags:
      - Profiles
      security:
      - apiKey: []
      parameters:
      - in: query
        name: labels
        required: true
        schema:
          type: string
        description: 'Comma-separated list of required parameter labels. At least one non-empty

          label must be supplied.

          '
        example: account_pin,card_number
      responses:
        '200':
          description: Profiles that satisfy all the requested labels (may be empty).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FindProfilesByParametersResponse'
        '400':
          description: Missing `labels` query parameter or empty after trimming.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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.

        '
  /profiles/{id}:
    parameters:
    - in: path
      name: id
      required: true
      schema:
        type: string
      description: 'Profile identifier (prefix `profile_` followed by a base-36 timestamp + random;

        NOT a uuid, unlike most other ids in the spec).

        '
      example: <profile-id>
    get:
      operationId: getProfile
      summary: Get a profile by id
      description: 'Returns one profile by id. Workspace ownership is enforced — cross-workspace

        access returns 404 (audit-log + EMF metric

        `Nopaque/Security/CrossWorkspaceAccessBlocked` emitted).'
      tags:
      - Profiles
      security:
      - apiKey: []
      responses:
        '200':
          description: Profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: Missing profile `id` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    put:
      operationId: updateProfile
      summary: Update a profile
      description: 'Semantics are PATCH-like — only supplied fields are applied. To clear

        `description`, send an empty string. The HTTP method is `PUT` for historical

        reasons (matches Plans 02-03 pattern).


        Items are NOT mutated by this endpoint; manage items via the `/items` paths.'
      tags:
      - Profiles
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProfileRequest'
            examples:
              renameOnly:
                summary: Rename only
                value:
                  name: <profile-name>
      responses:
        '200':
          description: Updated profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: Missing profile `id` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deleteProfile
      summary: Delete a profile (and all of its items)
      description: 'Removes the profile row. Workspace ownership is enforced BEFORE delete; cross-workspace

        returns 404. Returns 200 with `{ message, id }` — there is no body-less 204 path.'
      tags:
      - Profiles
      security:
      - apiKey: []
      responses:
        '200':
          description: Profile deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteProfileResponse'
        '400':
          description: Missing profile `id` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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.

        '
  /profiles/{id}/items:
    parameters:
    - in: path
      name: id
      required: true
      schema:
        type: string
      description: Profile identifier.
      example: <profile-id>
    post:
      operationId: addProfileItem
      summary: Add an item (voice or data) to a profile
      description: 'Appends a new item to the profile''s `items[]` array. The discriminator `type`

        selects between voice items (require `audioId`) and data items (require

        `datasetId` + `itemId`).


        Workspace ownership is enforced on the parent profile BEFORE mutation.'
      tags:
      - Profiles
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddProfileItemRequest'
            examples:
              voice:
                summary: Voice item
                value:
                  type: voice
                  audioId: <audio-id>
                  label: Home Address
              data:
                summary: Data item
                value:
                  type: data
                  datasetId: <dataset-id>
                  itemId: <dataset-item-id>
                  label: Card Number
      responses:
        '200':
          description: Profile (with the new item appended).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: 'Missing `type`, invalid `type` value, missing `label`, or missing the

            type-specific fields (`audioId` for voice; `datasetId` + `itemId` for data).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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.

        '
  /profiles/{id}/items/{itemId}:
    parameters:
    - in: path
      name: id
      required: true
      schema:
        type: string
      description: Profile identifier.
      example: <profile-id>
    - in: path
      name: itemId
      required: true
      schema:
        type: string
      description: Profile item identifier (server-generated, prefix `item_`).
      example: <profile-item-id>
    put:
      operationId: updateProfileItem
      summary: Update label/description of a profile item
      description: 'Only `label` and `description` are mutable — the underlying audio/dataset reference

        is immutable (remove and re-add to repoint).


        Workspace ownership is enforced on the parent profile BEFORE mutation.'
      tags:
      - Profiles
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProfileItemRequest'
            examples:
              renameLabel:
                summary: Rename label
                value:
                  label: Card Number (primary)
      responses:
        '200':
          description: Profile (with the item updated).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: Missing profile `id` or `itemId` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: removeProfileItem
      summary: Remove an item from a profile
      description: 'Removes one item from the profile''s `items[]` array (does NOT delete the

        underlying audio or dataset item — only the binding). Workspace ownership is

        enforced on the parent profile BEFORE mutation.'
      tags:
      - Profiles
      security:
      - apiKey: []
      responses:
        '200':
          description: Profile (with the item removed).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: Missing profile `id` or `itemId` path parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid `x-api-key` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Returned for both genuinely-missing profiles AND access-denied (deliberate

            info-disclosure mitigation per `responseUtils.ts` `createForbiddenResponse`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded for the API key's workspace tier.
          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:
    UpdateProfileItemRequest:
      type: object
      description: 'Body for `PUT /profiles/{id}/items/{itemId}`. Only `label` and `description` are

        mutable — the underlying audio/dataset reference is immutable (remove+re-add to

        repoint).

        '
      properties:
        label:
          type: string
          example: Card Number
        description:
          type: string
    ProfileItem:
      description: 'Union of voice items (`type: voice`) and data items (`type: data`). The `type`

        discriminator selects between `ProfileVoiceItem` and `ProfileDataItem`.

        '
      oneOf:
      - $ref: '#/components/schemas/ProfileVoiceItem'
      - $ref: '#/components/schemas/ProfileDataItem'
      discriminator:
        propertyName: type
        mapping:
          voice: '#/components/schemas/ProfileVoiceItem'
          data: '#/components/schemas/ProfileDataItem'
    ProfileDataItem:
      type: object
      description: 'Data item inside a profile — references a specific `DataItem` inside a `Dataset`

        by `datasetId` + `itemId`. The `label` is the parameter name used to match against

        test scripts.

        '
      required:
      - type
      - id
      - datasetId
      - itemId
      - label
      properties:
        type:
          type: string
          enum:
          - data
        id:
          type: string
          description: Stable item id (server-generated).
          example: <profile-item-id>
        datasetId:
          type: string
          format: uuid
          description: Reference to `Dataset.id` in the same workspace.
          example: <dataset-id>
        itemId:
          type: string
          description: Reference to `DataItem.id` inside the dataset.
          example: <dataset-item-id>
        label:
          type: string
          example: Card Number
        description:
          type: string
    ProfileParameterSummary:
      type: object
      description: 'One row in the workspace-wide parameter index. `profileCount` counts profiles that

        define this label; `profileIds` enumerates them (truncation policy: full list, no cap

        — workspaces with >1000 profiles hit the 1000-row scan cap in the handler).

        '
      required:
      - label
      - profileCount
      - profileIds
      properties:
        label:
          type: string
          example: account_pin
        profileCount:
          type: integer
          example: 5
        profileIds:
          type: array
          items:
            type: string
          example:
          - <profile-id>
    FindProfilesByParametersResponse:
      type: object
      description: 'Response for `GET /profiles/by-parameters?labels=`. Returns profiles whose `items[].label`

        set contains ALL of the requested labels (intersection, not union).

        '
      required:
      - profiles
      - count
      properties:
        profiles:
          type: array
          items:
            $ref: '#/components/schemas/Profile'
        count:
          type: integer
    AddVoiceProfileItemRequest:
      type: object
      description: Body for `POST /profiles/{id}/items` when adding a voice item.
      required:
      - type
      - audioId
      - label
      properties:
        type:
          type: string
          enum:
          - voice
        audioId:
          type: string
          format: uuid
          description: '`AudioObject.id` to bind to this profile.'
          example: <audio-id>
        label:
          type: string
          example: Home Address
        description:
          type: string
    ListProfilesResponse:
      type: object
      description: Response for `GET /profiles`.
      required:
      - profiles
      - count
      properties:
        profiles:
          type: array
          items:
            $ref: '#/components/schemas/Profile'
        count:
          type: integer
    CreateProfileRequest:
      type: object
      description: 'Body for `POST /profiles`. The created profile has no items by default — call

        `addProfileItem` to populate.

        '
      required:
      - name
      properties:
        name:
          type: string
          example: <profile-name>
        description:
          type: string
    ProfileVoiceItem:
      type: object
      description: 'Voice item inside a profile — references an `AudioObject` by id. The `label` is

        the parameter name used to match against test scripts.

        '
      required:
      - type
      - id
      - audioId
      - label
      properties:
        type:
          type: string
          enum:
          - voice
        id:
          type: string
          description: Stable item id (server-generated).
          example: <profile-item-id>
        audioId:
          type: string
          format: uuid
          description: Reference to `AudioObject.id` in the same workspace.
          example: <audio-id>
        label:
          type: string
          description: 'Parameter label — used to match this profile against test configs that bind

            to a parameter of the same name.

            '
          example: Home Address
        description:
          type: string
    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
    AddDataProfileItemRequest:
      type: object
      description: Body for `POST /profiles/{id}/items` when adding a data item.
      required:
      - type
      - datasetId
      - itemId
      - label
      properties:
        type:
          type: string
          enum:
          - data
        datasetId:
          type: string
          format: uuid
          example: <dataset-id>
        itemId:
          type: string
          description: '`DataItem.id` inside the dataset.'
          example: <dataset-item-id>
        label:
          type: string
          example: Card Number
        description:
          type: string
    AddProfileItemRequest:
      oneOf:
      - $ref: '#/components/schemas/AddVoiceProfileItemRequest'
      - $ref: '#/components/schemas/AddDataProfileItemRequest'
      discriminator:
        propertyName: type
        mapping:
          voice: '#/components/schemas/AddVoiceProfileItemRequest'
          data: '#/components/schemas/AddDataProfileItemRequest'
    ListProfileParametersResponse:
      type: object
      description: Response for `GET /profiles/parameters`. Parameters returned most-common-first.
      required:
      - parameters
      properties:
        parameters:
          type: array
          items:
            $ref: '#/components/schemas/ProfileParameterSummary'
    Profile:
      type: object
      description: 'Workspace-scoped profile of named voice + data items, used to instantiate

        parameterised tests. Items reference audio rows and/or dataset items via id.

        '
      required:
      - id
      - workspaceId
      - name
      - items
      - createdAt
      - updatedAt
      - createdBy
      properties:
        id:
          type: string
          description: Profile id (prefix `profile_` followed by a base-36 timestamp + random).
          example: <profile-id>
        workspaceId:
          type: string
          format: uuid
          example: <workspace-id>
        name:
          type: string
          example: <profile-name>
        description:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/ProfileItem'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        createdBy:
          type: string
          example: <user-id>
    DeleteProfileResponse:
      type: object
      description: Response for `DELETE /profiles/{id}`.
      required:
      - message
      - id
      properties:
        message:
          type: string
          example: Profile deleted
        id:
          type: string
          example: <profile-id>
    UpdateProfileRequest:
      type: object
      description: 'Body for `PUT /profiles/{id}`. Semantics are PATCH-like — only supplied fields

        are applied. To clear `description`, send an empty string.

        '
      properties:
        name:
          type: string
          example: <profile-name>
        description:
          type: string
  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


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/nopaque-co-uk/openapi/nopaque-co-uk-profiles-api-openapi.yml