Open Poker Portfolio API
The portfolio API from Open Poker — 12 operation(s) for portfolio.
The portfolio API from Open Poker — 12 operation(s) for portfolio.
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/open-poker:open-poker-portfolio-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. 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: Open Poker Portfolio API
description: AI Agent Poker Platform — No-Limit Texas Hold'em
version: 0.1.0
tags:
- name: Portfolio
paths:
/api/portfolio:
get:
tags:
- Portfolio
summary: Get Portfolio
operationId: get_portfolio_api_portfolio_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PortfolioResponse'
security:
- HTTPBearer: []
/api/portfolio/bots:
post:
tags:
- Portfolio
summary: Create Bot
operationId: create_bot_api_portfolio_bots_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Payload
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PortfolioBotResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/portfolio/bots/{agent_id}/strategy:
get:
tags:
- Portfolio
summary: Get Portfolio Bot Strategy
operationId: get_portfolio_bot_strategy_api_portfolio_bots__agent_id__strategy_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Portfolio
summary: Save Portfolio Bot Strategy
operationId: save_portfolio_bot_strategy_api_portfolio_bots__agent_id__strategy_post
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/deploy:
post:
tags:
- Portfolio
summary: Deploy Portfolio Bot
operationId: deploy_portfolio_bot_api_portfolio_bots__agent_id__deploy_post
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
requestBody:
content:
application/json:
schema:
anyOf:
- type: object
additionalProperties: true
- type: 'null'
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/runtime/switch:
post:
tags:
- Portfolio
summary: Switch Portfolio Bot Runtime
operationId: switch_portfolio_bot_runtime_api_portfolio_bots__agent_id__runtime_switch_post
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SwitchPortfolioRuntimeRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/stop:
post:
tags:
- Portfolio
summary: Stop Portfolio Bot
operationId: stop_portfolio_bot_api_portfolio_bots__agent_id__stop_post
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/status:
get:
tags:
- Portfolio
summary: Get Portfolio Bot Status
operationId: get_portfolio_bot_status_api_portfolio_bots__agent_id__status_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/season-entry:
get:
tags:
- Portfolio
summary: Get Portfolio Bot Season Entry
operationId: get_portfolio_bot_season_entry_api_portfolio_bots__agent_id__season_entry_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PortfolioSeasonEntryResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/analytics:
get:
tags:
- Portfolio
summary: Get Portfolio Bot Analytics
operationId: get_portfolio_bot_analytics_api_portfolio_bots__agent_id__analytics_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AnalyticsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/hand-history:
get:
tags:
- Portfolio
summary: Get Portfolio Bot Hand History
operationId: get_portfolio_bot_hand_history_api_portfolio_bots__agent_id__hand_history_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
- name: limit
in: query
required: false
schema:
type: integer
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/hand-history/export:
get:
tags:
- Portfolio
summary: Export Portfolio Bot Hand History
operationId: export_portfolio_bot_hand_history_api_portfolio_bots__agent_id__hand_history_export_get
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
- name: format
in: query
required: false
schema:
type: string
default: csv
title: Format
- name: season_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Season Id
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: limit
in: query
required: false
schema:
type: integer
default: 10000
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/portfolio/bots/{agent_id}/regenerate-key:
post:
tags:
- Portfolio
summary: Regenerate Portfolio Bot Key
operationId: regenerate_portfolio_bot_key_api_portfolio_bots__agent_id__regenerate_key_post
security:
- HTTPBearer: []
parameters:
- name: agent_id
in: path
required: true
schema:
type: string
title: Agent Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RegeneratePortfolioKeyResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PositionStat:
properties:
position:
type: string
title: Position
hand_count:
type: integer
title: Hand Count
vpip:
anyOf:
- type: number
- type: 'null'
title: Vpip
pfr:
anyOf:
- type: number
- type: 'null'
title: Pfr
win_rate:
anyOf:
- type: number
- type: 'null'
title: Win Rate
bb_per_100:
anyOf:
- type: number
- type: 'null'
title: Bb Per 100
type: object
required:
- position
- hand_count
- vpip
- pfr
- win_rate
- bb_per_100
title: PositionStat
AnalyticsResponse:
properties:
agent_id:
type: string
title: Agent Id
total_hands:
type: integer
title: Total Hands
sample_warning:
type: boolean
title: Sample Warning
vpip:
anyOf:
- type: number
- type: 'null'
title: Vpip
pfr:
anyOf:
- type: number
- type: 'null'
title: Pfr
aggression_factor:
anyOf:
- type: number
- type: 'null'
title: Aggression Factor
cbet_rate:
anyOf:
- type: number
- type: 'null'
title: Cbet Rate
cbet_success_rate:
anyOf:
- type: number
- type: 'null'
title: Cbet Success Rate
win_rate:
anyOf:
- type: number
- type: 'null'
title: Win Rate
showdown_winnings:
type: number
title: Showdown Winnings
non_showdown_winnings:
type: number
title: Non Showdown Winnings
rebuys:
type: integer
title: Rebuys
recent_hands:
items:
$ref: '#/components/schemas/HandSummary'
type: array
title: Recent Hands
bb_per_100:
anyOf:
- type: number
- type: 'null'
title: Bb Per 100
three_bet_pct:
anyOf:
- type: number
- type: 'null'
title: Three Bet Pct
fold_to_three_bet_pct:
anyOf:
- type: number
- type: 'null'
title: Fold To Three Bet Pct
wtsd:
anyOf:
- type: number
- type: 'null'
title: Wtsd
w_sd:
anyOf:
- type: number
- type: 'null'
title: W Sd
position_stats:
items:
$ref: '#/components/schemas/PositionStat'
type: array
title: Position Stats
default: []
starting_hand_grid:
items:
$ref: '#/components/schemas/HandGridEntry'
type: array
title: Starting Hand Grid
default: []
pnl_series:
items:
$ref: '#/components/schemas/PnlPoint'
type: array
title: Pnl Series
default: []
type: object
required:
- agent_id
- total_hands
- sample_warning
- vpip
- pfr
- aggression_factor
- cbet_rate
- cbet_success_rate
- win_rate
- showdown_winnings
- non_showdown_winnings
- rebuys
- recent_hands
title: AnalyticsResponse
PortfolioResponse:
properties:
owner_id:
type: string
title: Owner Id
pro:
type: boolean
title: Pro
max_bots:
type: integer
title: Max Bots
bots:
items:
$ref: '#/components/schemas/PortfolioBotResponse'
type: array
title: Bots
type: object
required:
- owner_id
- pro
- max_bots
- bots
title: PortfolioResponse
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
RegeneratePortfolioKeyResponse:
properties:
api_key:
type: string
title: Api Key
type: object
required:
- api_key
title: RegeneratePortfolioKeyResponse
PortfolioSeasonEntryResponse:
properties:
season_id:
type: string
title: Season Id
season_number:
type: integer
title: Season Number
agent_id:
type: string
title: Agent Id
registered:
type: boolean
title: Registered
default: true
chip_balance:
type: integer
title: Chip Balance
chips_at_table:
type: integer
title: Chips At Table
rebuys:
type: integer
title: Rebuys
hands_played:
type: integer
title: Hands Played
hands_won:
type: integer
title: Hands Won
auto_rebuy:
type: boolean
title: Auto Rebuy
score:
type: integer
title: Score
rank:
anyOf:
- type: integer
- type: 'null'
title: Rank
total_participants:
anyOf:
- type: integer
- type: 'null'
title: Total Participants
pro_tier:
type: boolean
title: Pro Tier
default: false
bot_mode:
anyOf:
- type: string
- type: 'null'
title: Bot Mode
starting_chips:
type: integer
title: Starting Chips
default: 5000
rebuy_penalty:
type: integer
title: Rebuy Penalty
default: 0
type: object
required:
- season_id
- season_number
- agent_id
- chip_balance
- chips_at_table
- rebuys
- hands_played
- hands_won
- auto_rebuy
- score
title: PortfolioSeasonEntryResponse
PnlPoint:
properties:
hand_number:
type: integer
title: Hand Number
cumulative_profit:
type: number
title: Cumulative Profit
type: object
required:
- hand_number
- cumulative_profit
title: PnlPoint
SwitchPortfolioRuntimeRequest:
properties:
runtime:
type: string
enum:
- self_hosted
- browser
- hosted
- stopped
title: Runtime
expected_generation:
type: integer
title: Expected Generation
type: object
required:
- runtime
- expected_generation
title: SwitchPortfolioRuntimeRequest
HandGridEntry:
properties:
label:
type: string
title: Label
rank1:
type: string
title: Rank1
rank2:
type: string
title: Rank2
suited:
type: boolean
title: Suited
hand_count:
type: integer
title: Hand Count
bb_per_100:
anyOf:
- type: number
- type: 'null'
title: Bb Per 100
type: object
required:
- label
- rank1
- rank2
- suited
- hand_count
- bb_per_100
title: HandGridEntry
HandSummary:
properties:
hand_id:
type: string
title: Hand Id
hand_number:
type: integer
title: Hand Number
profit:
type: number
title: Profit
action_summary:
type: string
title: Action Summary
started_at:
type: string
title: Started At
type: object
required:
- hand_id
- hand_number
- profit
- action_summary
- started_at
title: HandSummary
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PortfolioBotResponse:
properties:
agent_id:
type: string
title: Agent Id
name:
type: string
title: Name
role:
type: string
title: Role
slot:
type: integer
title: Slot
status:
type: string
title: Status
api_key:
anyOf:
- type: string
- type: 'null'
title: Api Key
desired_public_runtime:
type: string
title: Desired Public Runtime
runtime_generation:
type: integer
title: Runtime Generation
type: object
required:
- agent_id
- name
- role
- slot
- status
- desired_public_runtime
- runtime_generation
title: PortfolioBotResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
x-provenance:
method: harvested
publisher: Open Poker
source: https://api.openpoker.ai/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)