Metricool Settings - User Devices API

The Settings - User Devices API from Metricool — 2 operation(s) for settings - user devices.

Operations 2

GET /v2/settings/users/{userId}/devices Get user's known devices with pagination #
DELETE /v2/settings/users/{userId}/devices/{deviceId} Revoke a known device #

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/metricool:metricool-settings-user-devices-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

metricool-settings-user-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metricool Settings - User Devices API
  description: 'Metricool API


    The base URL for all endpoints is: https://app.metricool.com/api


    All endpoints require authentication.'
  version: 2.0.0
servers:
- url: https://app.metricool.com/api
tags:
- name: Settings - User Devices
paths:
  /v2/settings/users/{userId}/devices:
    get:
      tags:
      - Settings - User Devices
      summary: Get user's known devices with pagination
      description: Returns a paginated list of known devices for the authenticated user
      operationId: getDevices
      parameters:
      - name: userId
        in: path
        description: User id
        required: true
        schema:
          type: integer
          format: int32
      - name: page
        in: query
        description: Page number (0-based)
        required: true
        schema:
          minimum: 0
          type: integer
          format: int32
      - name: pageSize
        in: query
        description: Number of results per page
        required: true
        schema:
          maximum: 1000
          minimum: 10
          type: integer
          format: int32
      - name: sortBy
        in: query
        description: Field to sort by (firstLoginAt, lastLoginAt)
        required: false
        schema:
          type: string
      - name: sortDirection
        in: query
        description: Sort direction (asc, desc)
        required: false
        schema:
          type: string
      - name: timezone
        in: query
        description: Timezone for date formatting
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponsePageDtoKnownUserDeviceDto'
  /v2/settings/users/{userId}/devices/{deviceId}:
    delete:
      tags:
      - Settings - User Devices
      summary: Revoke a known device
      description: Marks the device as untrusted and deletes all associated sessions
      operationId: revokeDevice
      parameters:
      - name: userId
        in: path
        description: User id
        required: true
        schema:
          type: integer
          format: int32
      - name: deviceId
        in: path
        description: Device ID to revoke
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonOkResponseBoolean'
components:
  schemas:
    KnownUserDeviceDto:
      type: object
      properties:
        userDeviceId:
          type: integer
          description: Device ID
          format: int64
          example: 12345
        ipAddress:
          type: string
          description: IP Address
          example: 192.168.1.1
        browserName:
          type: string
          description: Browser Name
          example: Chrome
        osName:
          type: string
          description: Operating System
          example: Windows 10
        isTrusted:
          type: boolean
          description: Is device trusted
          example: true
        firstLoginAt:
          $ref: '#/components/schemas/DateTimeInfo'
        lastLoginAt:
          $ref: '#/components/schemas/DateTimeInfo'
      description: Known User Device
    JsonOkResponseBoolean:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          type: boolean
    JsonPaging:
      type: object
      properties:
        next:
          type: string
    DateTimeInfo:
      required:
      - dateTime
      type: object
      properties:
        dateTime:
          type: string
          description: 'Local Date-time represented with a certain timezone '
        timezone:
          type: string
          description: Timezone applied to the datetime
    JsonOkResponsePageDtoKnownUserDeviceDto:
      type: object
      properties:
        metadata:
          type: object
        page:
          $ref: '#/components/schemas/JsonPaging'
        data:
          $ref: '#/components/schemas/PageDtoKnownUserDeviceDto'
    PageDtoKnownUserDeviceDto:
      type: object
      properties:
        elements:
          type: array
          items:
            $ref: '#/components/schemas/KnownUserDeviceDto'
        pageNumber:
          type: integer
          format: int64
        pageSize:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64