Pulsoid OAuth2 API

The OAuth2 API from Pulsoid — 4 operation(s) for oauth2.

OpenAPI Specification

pulsoid-oauth2-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Pulsoid Features OAuth2 API
  description: Pulsoid enables real-time heart rate data transmission from peripherals (BLE heart rate monitors, smartwatches, etc.) to clients. The Pulsoid REST API provides endpoints to read and submit heart rate data, manage widgets, profile, and validate tokens. Real-time streaming is available via WebSocket endpoints.
  version: '1.0'
  contact:
    name: Pulsoid Support
    url: https://docs.pulsoid.net/
servers:
- url: https://dev.pulsoid.net
  description: Pulsoid API
security:
- BearerAuth: []
tags:
- name: OAuth2
paths:
  /oauth2/authorize:
    post:
      summary: OAuth2 authorize
      operationId: oauthAuthorize
      tags:
      - OAuth2
      security: []
      responses:
        '200':
          description: OK
  /oauth2/token:
    post:
      summary: OAuth2 token exchange/refresh
      operationId: oauthToken
      tags:
      - OAuth2
      security: []
      responses:
        '200':
          description: Token issued
  /oauth2/device_authorization:
    post:
      summary: OAuth2 device authorization
      operationId: oauthDeviceAuthorization
      tags:
      - OAuth2
      security: []
      responses:
        '200':
          description: Device code issued
  /oauth2/revoke:
    post:
      summary: Revoke access token
      operationId: oauthRevoke
      tags:
      - OAuth2
      security: []
      responses:
        '200':
          description: Revoked
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth2
    OAuth2:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://pulsoid.net/oauth2/authorize
          scopes:
            data:heart_rate:read: Read heart rate data
            data:heart_rate:write: Write heart rate data
            data:statistics:read: Read heart rate statistics
            data:room:read: Read room real-time data
            widgets:read: Read widgets
            widgets:update: Create or update widgets
            profile:read: Read profile
            geometry_dash_mod:configuration:read: Read GD mod config
            geometry_dash_mod:configuration:write: Update GD mod config
        authorizationCode:
          authorizationUrl: https://pulsoid.net/oauth2/authorize
          tokenUrl: https://pulsoid.net/oauth2/token
          scopes:
            data:heart_rate:read: Read heart rate data
            data:heart_rate:write: Write heart rate data
            data:statistics:read: Read heart rate statistics
            widgets:read: Read widgets
            widgets:update: Create or update widgets
            profile:read: Read profile