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.
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_*