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: NegativeEV bet checker A2a API
version: 1.4.5
summary: Grade MLB, WNBA, PGA, ATP, and NFL bets against play-by-play game simulations.
description: 'NegativeEV runs the actual game thousands of times, play by play, and compares how often a bet would have won with the probability the sportsbook''s price implies. Bets are graded through the MCP or A2A endpoint below; the two GET endpoints report whether there is a slate to grade against and how many checks the caller has left. Anonymous callers are metered per device; a Supabase access token sent as `Authorization: Bearer` raises the allowance.'
termsOfService: https://negativeev.com/terms
contact:
name: NegativeEV
url: https://negativeev.com/contact
servers:
- url: https://negativeev.com
security:
- {}
- supabaseBearer: []
- agentKey: []
tags:
- name: A2a
paths:
/a2a:
post:
operationId: sendA2aMessage
summary: A2A SendMessage
description: JSON-RPC 2.0. Send the bet as the text part of a user message; the reply is an agent message whose text part summarises the verdict and whose data part carries it in full. Agent card at /.well-known/agent-card.json.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcRequest'
example:
jsonrpc: '2.0'
id: 1
method: SendMessage
params:
message:
messageId: 9d2e0b4a-1f6f-4a0e-9a1e-0c2b1f5d7e13
role: ROLE_USER
parts:
- text: Shohei Ohtani over 1.5 total bases -120
responses:
'200':
description: An A2A JSON-RPC response carrying a Message — or a JSON-RPC error object, which A2A also returns with HTTP 200.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
'405':
description: The A2A endpoint accepts POST only.
headers:
Allow:
schema:
type: string
description: Always `POST`.
'500':
description: The request failed before a response could be produced. Safe to retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- A2a
components:
schemas:
JsonRpcResponse:
type: object
title: JSON-RPC 2.0 response
description: 'Carries `result` on success and `error` on failure — never both. Both arrive with HTTP 200: a JSON-RPC error is a transport success.'
required:
- jsonrpc
- id
properties:
jsonrpc:
type: string
const: '2.0'
id:
type:
- string
- integer
- 'null'
result:
type: object
description: Present when the call succeeded.
error:
type: object
description: Present when it did not.
required:
- code
- message
properties:
code:
type: integer
description: JSON-RPC error code.
message:
type: string
description: What went wrong.
Problem:
type: object
title: Problem details (RFC 9457)
description: What a wrong path or an unhandled failure answers with, in the shape RFC 9457 defines, served as application/problem+json.
required:
- type
- title
- status
- detail
properties:
type:
type: string
format: uri
description: Problem type URI. `about:blank` means the status code is the whole story.
examples:
- about:blank
title:
type: string
description: Short human-readable summary of the problem type.
examples:
- Not Found
status:
type: integer
description: The HTTP status code, repeated in the body.
examples:
- 404
detail:
type: string
description: What went wrong on this specific request.
instance:
type: string
description: The path the problem occurred on.
examples:
- /a2a/nope
JsonRpcRequest:
type: object
title: JSON-RPC 2.0 request
description: The envelope both the MCP and the A2A endpoint accept.
required:
- jsonrpc
- method
properties:
jsonrpc:
type: string
const: '2.0'
description: Always "2.0".
id:
type:
- string
- integer
- 'null'
description: Echoed back on the response. Omit only for a notification.
method:
type: string
description: The method being called.
params:
type: object
description: Method arguments.
securitySchemes:
supabaseBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token. See https://negativeev.com/auth.md.
agentKey:
type: http
scheme: bearer
bearerFormat: nev_ agent key
description: An agent key minted at POST /keys by a signed-in member. Carries that account's membership and allowance. See https://negativeev.com/auth.md.
externalDocs:
description: Guide for agents
url: https://negativeev.com/AGENTS.md