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: Priors paid Pool API
version: 1.2.0
description: Credit records and scores of ERC-8004 agents on Priors, the credit protocol for AI agents on Robinhood Chain, the pool's and the stock vault's figures, and images and short video clips made to order under strict content rules.
x-guidance: 'Each route has its own price in USDG, paid per call with x402 v2 (scheme exact, network eip155:4663, USDG 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168): GET /v1/report/{agentId} 0.03; GET /v1/score/{agentId} 0.03; GET /v1/file/{agentId} 0.10; GET /v1/explain/{agentId} 0.02; POST /v1/screen 0.05; GET /v1/wallet/{address} 0.03; GET /v1/income/{agentId} 0.03; GET /v1/pool/day 0.02; POST /v1/watch 0.03; GET /v1/late 0.02; GET /v1/backer/{agentId} 0.05; GET /v1/stock-line/{symbol} 0.02; GET /v1/stocks/holds 0.02; GET /v1/credit/{agentId} 0.03; POST /v1/media/image 0.05; POST /v1/media/video 0.45. GET /v1/score/{agentId} returns an agent''s Priors score (0 to 1000) and GET /v1/report/{agentId} its full credit report; GET /v1/file/{agentId} is the due-diligence file; POST /v1/screen and POST /v1/watch take {"agents": [...]}, 1 to 50 entries. Every route checks its input and its data before it asks for payment: a malformed input is a 400 and what Priors does not know a 404, with nothing charged. POST /v1/media/image ({"prompt", "aspect_ratio"}) and POST /v1/media/video ({"prompt", "duration": 5, "image_id"}) answer a media id at once; GET /v1/media/{id} is free and gives the output URLs when done. A prompt that breaks the content rules (real or named people, brands or logos, sexual, violent, hateful or political content, children, weapons, drugs) is a 422 before any payment, and so is one the content check refuses after the payment is signed: nothing settles. At the monthly limit the media routes answer 503 before any offer.'
contact:
email: contact@priors.trade
url: https://priors.trade
servers:
- url: https://api.priors.trade
tags:
- name: Pool
paths:
/v1/pool/day:
get:
operationId: poolDay
summary: 'Priors pool figures for one UTC day (today so far by default): loans borrowed…'
tags:
- Pool
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.020000'
protocols:
- x402: {}
parameters:
- name: date
in: query
required: false
description: 'A UTC day, YYYY-MM-DD, from the pool''s first day to today (default: today)'
schema:
type: string
format: date
responses:
'200':
description: The pool's figures for that day
content:
application/json:
schema:
type: object
'400':
description: date is not a UTC day, or is before the pool's first day or after today (nothing is charged)
'402':
description: 'Payment Required: 0.02 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
'503':
description: The data is not available right now (nothing is charged)
/v1/late:
get:
operationId: lateLoans
summary: Every Priors loan past due now (late, or defaultable after its grace), with its…
tags:
- Pool
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.020000'
protocols:
- x402: {}
responses:
'200':
description: The loans past due now, and the last 30 days' defaults
content:
application/json:
schema:
type: object
'402':
description: 'Payment Required: 0.02 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
'503':
description: The data is not available right now (nothing is charged)