SignOps Devices API

The Devices API from SignOps — 4 operation(s) for devices.

GitHub OpenAPI

Operations 5

POST /v1/devices Add a device #
GET /v1/devices List a user's devices #
GET /v1/users/{user_id}/devices List a user's devices (by path) #
DELETE /v1/devices/{id} Remove a device #
POST /v1/devices/import Import devices #

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/signops:signops-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

signops-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SignOps Devices API
  version: 1.0.0
  description: 'Push notifications to Android, iOS and the web, login approval on a trusted phone, passkeys, authenticator codes and email OTP, on one API key and your own user ids. Errors are { error: { code, message } }. Test keys (sk_test_) send only to test devices and addresses and are not billed.'
  contact:
    email: hello@signops.dev
    url: https://signops.dev/docs/
  termsOfService: https://signops.dev/terms/
servers:
- url: https://api.signops.dev
security:
- secretKey: []
tags:
- name: Devices
paths:
  /v1/devices:
    post:
      operationId: postDevices
      summary: Add a device
      description: Adds an FCM, APNs or web push token under your user id. The same token again updates it, and moves it if the user changed.
      tags:
      - Devices
      security:
      - secretKey: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: The same key within 24 hours returns the first result instead of acting twice.
        schema:
          type: string
          maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: string
                  description: Your own id for the user, up to 128 characters without spaces.
                  maxLength: 128
                token:
                  type: string
                  description: The FCM token, the APNs device token in hex, or the web push subscription as a JSON string.
                platform:
                  type: string
                  description: Where the token came from.
                  enum:
                  - android
                  - ios
                  - web
                name:
                  type: string
                  description: A name for the device, up to 80 characters.
                  maxLength: 80
              required:
              - user_id
              - token
              - platform
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Device id.
                  user_id:
                    type: string
                    description: Your own id for the user, up to 128 characters without spaces.
                    maxLength: 128
                  platform:
                    type: string
                    description: android, ios or web.
                  route:
                    type: string
                    description: 'How it is sent: fcm, apns or webpush.'
        4XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      operationId: getDevices
      summary: List a user's devices
      tags:
      - Devices
      security:
      - secretKey: []
      parameters:
      - name: user_id
        in: query
        required: true
        schema:
          type: string
          description: Your own id for the user, up to 128 characters without spaces.
          maxLength: 128
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Device'
                    description: The user's devices, most recently seen first.
        4XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/users/{user_id}/devices:
    get:
      operationId: getUsersByUserIdDevices
      summary: List a user's devices (by path)
      tags:
      - Devices
      security:
      - secretKey: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Device'
                    description: The user's devices.
        4XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/devices/{id}:
    delete:
      operationId: deleteDevicesById
      summary: Remove a device
      tags:
      - Devices
      security:
      - secretKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Device id.
                  removed:
                    type: boolean
                    description: Always true.
        4XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/devices/import:
    post:
      operationId: postDevicesImport
      summary: Import devices
      description: Moves tokens from OneSignal or Firebase, up to 500 a call. Each row is checked on its own.
      tags:
      - Devices
      security:
      - secretKey: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: The same key within 24 hours returns the first result instead of acting twice.
        schema:
          type: string
          maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                devices:
                  type: array
                  items:
                    type: object
                    properties:
                      user_id:
                        type: string
                        description: Your own id for the user, up to 128 characters without spaces.
                        maxLength: 128
                      platform:
                        type: string
                        description: android, ios or web.
                        enum:
                        - android
                        - ios
                        - web
                      token:
                        type: string
                        description: The token.
                      name:
                        type: string
                        description: Optional device name.
                    required:
                    - user_id
                    - platform
                    - token
                  description: Up to 500 devices.
                  maxItems: 500
              required:
              - devices
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  imported:
                    type: integer
                    description: New devices.
                  updated:
                    type: integer
                    description: Tokens already known.
                  skipped:
                    type: array
                    items:
                      type: object
                      properties:
                        row:
                          type: integer
                          description: Row number.
                        reason:
                          type: string
                          description: Why it was skipped.
                    description: Up to 100 skipped rows.
                  skipped_count:
                    type: integer
                    description: All skipped rows.
        4XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable code, like invalid_request, rate_limited or expired.
            message:
              type: string
              description: Written for a developer to read.
          required:
          - code
          - message
      required:
      - error
    Device:
      type: object
      properties:
        id:
          type: string
          description: Device id.
        user_id:
          type: string
          description: Your own id for the user, up to 128 characters without spaces.
          maxLength: 128
        platform:
          type: string
          description: android, ios or web.
        route:
          type: string
          description: fcm, apns or webpush.
        name:
          type: string
          description: Device name.
        trusted:
          type: boolean
          description: Enrolled for Approve.
        created_at:
          type: string
          description: ISO 8601 time.
          format: date-time
        last_seen_at:
          type: string
          description: ISO 8601 time.
          format: date-time
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      description: sk_live_... or sk_test_..., on your server only.
    publishableKey:
      type: http
      scheme: bearer
      description: pk_live_... or pk_test_..., used by the SDKs in apps and browsers.
externalDocs:
  description: Docs
  url: https://signops.dev/docs/