Caliu Devices API

The Devices API from Caliu — 2 operation(s) for devices.

Operations 2

GET /devices List logged-in devices #
DELETE /devices/{id} Revoke a device session #

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/caliuapp-com:caliuapp-com-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

caliuapp-com-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Caliu Devices API
  version: 1.0.0
  description: 'API-first notes app. Access your notes programmatically using an API key.


    Create an API key in the app settings, then pass it as `Authorization: Bearer caliu_xxx` header.'
  contact:
    name: Caliu
    url: https://caliuapp.com
servers:
- url: https://api.caliuapp.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Devices
paths:
  /devices:
    get:
      tags:
      - Devices
      summary: List logged-in devices
      description: 'List all active sessions for the current user. The session matching the caller''s own credentials is flagged with `current: true`. API-key callers see all rows as `current: false`.'
      security:
      - bearerAuth: []
      - cookieAuth: []
      responses:
        '200':
          description: List of devices
          content:
            application/json:
              schema:
                type: object
                properties:
                  devices:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        platform:
                          type: string
                          nullable: true
                        user_agent:
                          type: string
                          nullable: true
                        country:
                          type: string
                          nullable: true
                        city:
                          type: string
                          nullable: true
                        last_used_at:
                          type: string
                        created_at:
                          type: string
                        current:
                          type: boolean
                      required:
                      - id
                      - platform
                      - user_agent
                      - country
                      - city
                      - last_used_at
                      - created_at
                      - current
                required:
                - devices
      operationId: getDevices
      x-operation-id-source: derived
  /devices/{id}:
    delete:
      tags:
      - Devices
      summary: Revoke a device session
      description: Revoke (sign out) a device by deleting its session. Self-revoke (deleting your own current session) requires `?force=1` to prevent accidental self-logout.
      security:
      - bearerAuth: []
      - cookieAuth: []
      parameters:
      - schema:
          type: string
          description: Resource ID
          example: abc123
        required: true
        description: Resource ID
        name: id
        in: path
      - schema:
          type: string
          description: Set to "1" to confirm revoking the caller's own session
        required: false
        description: Set to "1" to confirm revoking the caller's own session
        name: force
        in: query
      responses:
        '200':
          description: Device revoked
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                required:
                - ok
        '400':
          description: Self-revoke without ?force=1, or attempt to revoke a non-session device from API-key auth
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      operationId: deleteDevicesById
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key (caliu_xxx) or session token
    cookieAuth:
      type: apiKey
      in: cookie
      name: caliu_session