ONCE Fraud API

The Fraud API from ONCE — 1 operation(s) for fraud.

GitHub OpenAPI

Operations 1

POST /fraud/score ONCE Fraud API — risk score and flags for an email #

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/once-app:once-app-fraud-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

once-app-fraud-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ONCE REST Fraud API
  version: 1.0.0
  description: Human-friendly HTTP API for ONCE music distribution. Same capabilities, authentication, billing, and validation as the ONCE MCP server.
servers:
- url: https://once.app/v1
security:
- bearerAuth: []
tags:
- name: Fraud
paths:
  /fraud/score:
    post:
      summary: ONCE Fraud API — risk score and flags for an email
      description: Returns the overall weighted fraud score, severity, and the individual signal flags for an email. Requires an API key (Personal Access Token) with the once:fraud scope, created in the ONCE dev center. Never returns IPs, other-account data, or any internal detection details — only scores and flags. Free during a limited-time beta.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FraudScoreRequest'
      responses:
        '200':
          description: Fraud score and flags
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FraudScoreResponse'
        '403':
          description: API key missing the once:fraud scope
        '404':
          description: No ONCE account found for the email
        '429':
          description: Rate limit or daily free-tier quota exceeded
      tags:
      - Fraud
      operationId: postFraudScore
      x-operation-id-source: derived
components:
  schemas:
    FraudScoreRequest:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
          description: Email address to check.
    FraudScoreResponse:
      type: object
      required:
      - email
      - score
      - maxScore
      - severity
      - flags
      properties:
        email:
          type: string
          format: email
        score:
          type: integer
          description: Overall weighted risk score, 0..maxScore.
        maxScore:
          type: integer
          description: Scoring ceiling.
        severity:
          type: string
          enum:
          - none
          - low
          - medium
          - high
          - critical
        computedAt:
          type:
          - string
          - 'null'
          format: date-time
          description: Last time this account was scored, or null if never scored.
        flags:
          type: array
          items:
            $ref: '#/components/schemas/FraudFlag'
    FraudFlag:
      type: object
      required:
      - code
      - label
      - category
      - severity
      - triggered
      - points
      properties:
        code:
          type: string
          description: Stable public flag code.
        label:
          type: string
        category:
          type: string
          enum:
          - rights
          - account_integrity
          - content
          - distribution
          - streaming
          - behavior
          - abuse
        severity:
          type: string
          enum:
          - low
          - medium
          - high
          - critical
        triggered:
          type: boolean
        points:
          type: integer
          description: Points this flag contributed (0 when not triggered).
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or once_pat_*