Nopaque Limited Users API

User profile and preferences.

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 4

GET /users/{userId} Get a user's profile #
PATCH /users/{userId} Update the current user's profile #
GET /user/preferences Get the current user's preferences #
PATCH /user/preferences Update the current user's preferences #

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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nopaque Co Uk Users 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 Users 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: Users
  description: User profile and preferences.
paths:
  /users/{userId}:
    parameters:
    - in: path
      name: userId
      required: true
      schema:
        type: string
        format: uuid
      description: User identifier (Cognito `sub` claim).
      example: <user-id>
    get:
      operationId: getUser
      summary: Get a user's profile
      description: 'Returns the user profile for the given `userId`. This operation lives on the Auth

        gateway (https://9mel8d5ehi.execute-api.eu-west-2.amazonaws.com) — use the

        `Authorization: Bearer ` header, NOT `x-api-key`.


        Response keys are snake_case (`avatar_url`, `theme_preference`, `created_at`,

        `updated_at`) for historical frontend compatibility — see `User` schema notes.'
      tags:
      - Users
      security:
      - cognitoBearer: []
      responses:
        '200':
          description: User profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
              examples:
                profile:
                  summary: Authenticated user
                  value:
                    id: <user-id>
                    email: user@example.com
                    name: Ada Lovelace
                    avatar_url: null
                    theme_preference: system
                    created_at: '2026-01-15T08:30:00Z'
                    updated_at: '2026-05-12T14:22:00Z'
        '401':
          description: 'Missing or invalid `Authorization: Bearer <jwt>` header, OR the bearer JWT

            does not resolve to an existing user record.

            '
          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'
    patch:
      operationId: updateUser
      summary: Update the current user's profile
      description: 'Updates the user''s display name. Email is immutable (bound to Cognito identity

        and Stripe customer); avatar upload is not yet wired through this endpoint.


        Authorization: users can only update their OWN profile. A 401 is returned when

        the `userId` path segment differs from the authenticated `sub`.


        This operation lives on the Auth gateway — use `Authorization: Bearer `.'
      tags:
      - Users
      security:
      - cognitoBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRequest'
            examples:
              rename:
                summary: Update display name
                value:
                  name: Ada Lovelace
      responses:
        '200':
          description: 'User profile updated. The response shape is the underlying DynamoDB record

            (camelCase fields: `name`, `email`, `themePreference`, `createdAt`, `updatedAt`).

            Treat key casing tolerantly across `GET /users/{userId}` (snake_case) and this

            `PATCH /users/{userId}` (camelCase) responses.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '400':
          description: 'Validation failure — missing `name`, non-string `name`, empty `name` after trim,

            `name` > 100 chars, or invalid JSON body.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'Missing `Authorization` header, invalid JWT, OR the path `userId` does not

            match the authenticated user (cross-user update attempts are denied).

            '
          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.

        '
  /user/preferences:
    get:
      operationId: getUserPreferences
      summary: Get the current user's preferences
      description: 'Returns the authenticated user''s preference subset. Today this carries only

        `themePreference`; future preferences (notification opt-ins, locale) will be

        added here additively. Defaults to `themePreference: "system"` when unset.


        This operation lives on the Auth gateway — use `Authorization: Bearer `.'
      tags:
      - Users
      security:
      - cognitoBearer: []
      responses:
        '200':
          description: User preferences object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPreferences'
              examples:
                default:
                  summary: System theme (default)
                  value:
                    themePreference: system
        '401':
          description: 'Missing or invalid `Authorization: Bearer <jwt>` header, OR the bearer JWT

            does not resolve to an existing user record.

            '
          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'
    patch:
      operationId: updateUserPreferences
      summary: Update the current user's preferences
      description: 'Updates the authenticated user''s preferences. Only fields present in the body are

        updated — omitted fields retain their current value. The response is the FULL

        updated preferences object (not a diff).


        This operation lives on the Auth gateway — use `Authorization: Bearer `.'
      tags:
      - Users
      security:
      - cognitoBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPreferencesRequest'
            examples:
              setDark:
                summary: Set theme to dark
                value:
                  themePreference: dark
      responses:
        '200':
          description: Preferences updated. Response is the full preferences object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPreferences'
        '400':
          description: 'Validation failure — invalid JSON body OR `themePreference` not in

            `[light, dark, brand, system]`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'Missing or invalid `Authorization: Bearer <jwt>` header.

            '
          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:
    UpdateUserPreferencesRequest:
      type: object
      description: 'PATCH body for `PATCH /user/preferences`. All fields optional — only fields

        present in the body are updated.


        Sending `dashboardLayout: null` resets the user to the frontend default.

        A malformed layout is rejected with 400 rather than partially stored.

        '
      properties:
        dashboardLayout:
          description: 'Replacement dashboard arrangement, or `null` to reset to the default.

            Rejected with 400 if module ids are duplicated or malformed, a module

            extends past column 12, more than 60 modules are sent, or `savedAt` is

            not an ISO date.

            '
          oneOf:
          - $ref: '#/components/schemas/DashboardLayoutPreference'
          - type: 'null'
        themePreference:
          type: string
          enum:
          - light
          - dark
          - brand
          - system
          description: New theme preference.
          example: dark
    UserPreferences:
      type: object
      description: 'User preferences subset. Returned by `GET /user/preferences`. Future

        preferences (notification opt-ins, locale, etc.) will be added here

        additively.

        '
      required:
      - themePreference
      properties:
        themePreference:
          type: string
          enum:
          - light
          - dark
          - brand
          - system
          description: 'UI theme preference. `system` follows OS-level preference; `brand` is the

            nopaque colour palette regardless of OS theme.

            '
          example: system
        dashboardLayout:
          description: 'The user''s saved platform dashboard arrangement, or `null` when they

            have never configured one (in which case the frontend renders its own

            default).

            '
          oneOf:
          - $ref: '#/components/schemas/DashboardLayoutPreference'
          - type: 'null'
    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
    UpdateUserRequest:
      type: object
      description: 'PATCH body for `PATCH /users/{userId}`. Currently only `name` is mutable.

        Email is immutable (bound to Cognito + Stripe customer); avatar upload is not yet wired

        through this endpoint.

        '
      required:
      - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Display name (1-100 chars after trim).
          example: Ada Lovelace
    DashboardLayoutModule:
      type: object
      description: 'One module placed on the configurable platform dashboard. Coordinates are

        in grid units on a fixed 12-column grid, never pixels.

        '
      required:
      - id
      - x
      - y
      - w
      - h
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          description: Module id from the frontend module registry.
          example: passRateTrend
        x:
          type: integer
          minimum: 0
          maximum: 11
          description: Left edge, in columns. `x + w` must not exceed 12.
          example: 0
        y:
          type: integer
          minimum: 0
          maximum: 400
          description: Top edge, in rows.
          example: 4
        w:
          type: integer
          minimum: 1
          maximum: 12
          description: Width in columns.
          example: 6
        h:
          type: integer
          minimum: 1
          maximum: 400
          description: Height in rows.
          example: 5
    DashboardLayoutPreference:
      type: object
      description: 'A user''s saved dashboard arrangement.


        `savedAt` records when the user last configured their dashboard. The

        frontend compares it against the date each module became available — the

        later of when the module shipped and when this workspace first had data

        for it — to decide what is new to that user. That is why no per-module

        dismissal state is stored: a date cannot get permanently stuck the way a

        dismissal list can.


        Absent for any user who has never configured a dashboard. The frontend

        owns the default and deliberately writes nothing until the user edits,

        so there is no seeding job and no backfill.

        '
      required:
      - modules
      - savedAt
      properties:
        modules:
          type: array
          maxItems: 60
          description: 'Placed modules. Ids must be unique. An empty array is valid — a user

            may strip their dashboard bare.

            '
          items:
            $ref: '#/components/schemas/DashboardLayoutModule'
        savedAt:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: ISO date (YYYY-MM-DD) the user last configured the dashboard.
          example: '2026-08-14'
    User:
      type: object
      description: 'User profile. Returned by `GET /users/{userId}`. Keys are emitted in snake_case

        for the GET response to preserve frontend compatibility; the PATCH update response

        from `PATCH /users/{userId}` returns the underlying record in camelCase

        (`name`, `email`, `createdAt`, `updatedAt`). Treat unexpected casing tolerantly.

        '
      required:
      - id
      properties:
        id:
          type: string
          format: uuid
          description: User identifier (Cognito sub claim).
          example: <user-id>
        email:
          type: string
          format: email
          description: User's email address (immutable — bound to Cognito identity and Stripe customer).
          example: user@example.com
        name:
          type: string
          nullable: true
          description: Display name. May be null for users who haven't completed profile setup.
          example: Ada Lovelace
        avatar_url:
          type: string
          nullable: true
          description: URL of the user's avatar image (snake_case in this response per legacy compat).
          example: null
        theme_preference:
          type: string
          enum:
          - light
          - dark
          - brand
          - system
          description: User's preferred UI theme. Defaults to `system`.
          example: system
        created_at:
          type: string
          format: date-time
          nullable: true
          description: ISO-8601 timestamp when the user record was created.
          example: '2026-01-15T08:30:00Z'
        updated_at:
          type: string
          format: date-time
          nullable: true
          description: ISO-8601 timestamp of the last profile update.
          example: '2026-05-12T14:22: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)