NegativeEV Keys API
The Keys API from NegativeEV — 2 operation(s) for keys.
The Keys API from NegativeEV — 2 operation(s) for keys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/negativeev-com:negativeev-com-keys-api"
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.
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: 3.2.0
info:
title: NegativeEV bet checker Keys 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: Keys
paths:
/keys:
post:
operationId: createKey
summary: Mint an agent key that carries this account's membership
description: 'Signed-in session only: a key can never mint a key. The plaintext key is returned exactly once; only its hash is stored.'
security:
- supabaseBearer: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
maxLength: 64
description: A label for the key.
example:
name: claude desktop
responses:
'200':
description: The new key, with its plaintext shown this once.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyCreated'
example:
id: 0b8f4f6e-2c3d-4a1e-9f7a-1d2e3f4a5b6c
name: claude desktop
prefix: nev_Ab12Cd34
key: nev_Ab12Cd34Ef56Gh78Ij90Kl12Mn34Op56Qr78St90Uv
created_at: '2026-09-02T18:00:00.000Z'
'401':
description: The bearer token was invalid or expired. Re-authenticate; do not retry anonymously.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The bearer was an agent key. Keys are managed with a signed-in session.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: The caller is out of checks, or sending them too fast. Wait `reset_in` seconds.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying.
'500':
description: The request failed before a response could be produced. Safe to retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- Keys
get:
operationId: listKeys
summary: This account's agent keys
security:
- supabaseBearer: []
responses:
'200':
description: Every key the account has minted, revoked ones included. Never a plaintext or a hash.
content:
application/json:
schema:
type: object
required:
- keys
properties:
keys:
type: array
items:
$ref: '#/components/schemas/AgentKey'
'401':
description: The bearer token was invalid or expired. Re-authenticate; do not retry anonymously.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: The request failed before a response could be produced. Safe to retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- Keys
/keys/revoke:
post:
operationId: revokeKey
summary: Revoke one of this account's agent keys
security:
- supabaseBearer: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- id
properties:
id:
type: string
responses:
'200':
description: The key, now revoked. Revoking twice answers the same row.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKey'
'401':
description: The bearer token was invalid or expired. Re-authenticate; do not retry anonymously.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No key with that id belongs to this account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: The request failed before a response could be produced. Safe to retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- Keys
components:
schemas:
AgentKey:
type: object
title: Agent key
description: One of an account's agent keys, as listed. Never carries the plaintext.
required:
- id
- name
- prefix
- created_at
- last_used_at
- revoked_at
properties:
id:
type: string
name:
type: string
prefix:
type: string
description: The key's first 12 characters.
created_at:
type: string
format: date-time
last_used_at:
type:
- string
- 'null'
format: date-time
revoked_at:
type:
- string
- 'null'
format: date-time
Error:
type: object
title: Endpoint error
description: What the checking endpoints answer a refused call with. `error` is the stable code to branch on; `message` is written to be shown to a person as-is.
required:
- error
- message
properties:
error:
type: string
description: Stable machine code for the refusal, e.g. `rate_limited`, `invalid_token`, `out_of_checks`. Branch on this, never on the message.
examples:
- rate_limited
message:
type: string
description: One sentence explaining the refusal, safe to relay verbatim.
examples:
- Too many checks too quickly — give it a moment and try again.
reset_in:
type: integer
description: Seconds until the caller's allowance frees up. Present only on a quota or pace refusal; wait this long rather than retrying immediately.
examples:
- 42
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
AgentKeyCreated:
type: object
title: Agent key, just minted
description: 'What POST /keys answers: the listed fields plus the plaintext key, which no later call can return.'
required:
- id
- name
- prefix
- key
- created_at
properties:
id:
type: string
name:
type: string
prefix:
type: string
key:
type: string
description: The plaintext key. Shown once; store it, it cannot be read back.
created_at:
type: string
format: date-time
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