Skip to content

Commit f58d760

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1287)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 0fea6d2 commit f58d760

1 file changed

Lines changed: 76 additions & 3 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11339,6 +11339,31 @@ components:
1133911339
- 'failure_reason'
1134011340
- 'created_at'
1134111341
type: 'object'
11342+
CreditPurchasePaymentRequired:
11343+
properties:
11344+
challengeId:
11345+
type: 'string'
11346+
detail:
11347+
type: 'string'
11348+
setup:
11349+
description: 'The agent setup guide, `GET /api/v1/credits/purchases/setup`.'
11350+
example: 'https://openrouter.ai/api/v1/credits/purchases/setup'
11351+
type: 'string'
11352+
status:
11353+
enum:
11354+
- 402
11355+
type: 'number'
11356+
title:
11357+
type: 'string'
11358+
type:
11359+
example: 'https://paymentauth.org/problems/payment-required'
11360+
type: 'string'
11361+
required:
11362+
- 'type'
11363+
- 'title'
11364+
- 'status'
11365+
- 'setup'
11366+
type: 'object'
1134211367
CreditPurchaseResponse:
1134311368
properties:
1134411369
data:
@@ -42743,10 +42768,24 @@ paths:
4274342768
description: 'Unauthorized - Authentication required or invalid credentials'
4274442769
'402':
4274542770
content:
42746-
application/json:
42771+
application/problem+json:
4274742772
schema:
42748-
$ref: '#/components/schemas/CreditPurchaseResponse'
42749-
description: 'Payment required. An unpaid request carries the MPP challenge in `WWW-Authenticate`.'
42773+
$ref: '#/components/schemas/CreditPurchasePaymentRequired'
42774+
description: 'Payment required. An unpaid request carries the MPP challenge in `WWW-Authenticate`, and a `Link: rel="help"` header plus a `setup` field pointing at the agent setup guide, `GET /api/v1/credits/purchases/setup`.'
42775+
headers:
42776+
Link:
42777+
description: 'The agent setup guide.'
42778+
required: true
42779+
schema:
42780+
description: 'The agent setup guide.'
42781+
example: '<https://openrouter.ai/api/v1/credits/purchases/setup>; rel="help"'
42782+
type: 'string'
42783+
WWW-Authenticate:
42784+
description: 'The MPP challenge: `Payment id="...", method="tempo", intent="charge", ...`.'
42785+
required: true
42786+
schema:
42787+
description: 'The MPP challenge: `Payment id="...", method="tempo", intent="charge", ...`.'
42788+
type: 'string'
4275042789
'403':
4275142790
content:
4275242791
application/json:
@@ -42911,6 +42950,40 @@ paths:
4291142950
x-fern-ignore: true
4291242951
x-hidden: true
4291342952
x-speakeasy-ignore: true
42953+
/credits/purchases/setup:
42954+
get:
42955+
operationId: 'listCreditsPurchasesSetup'
42956+
responses:
42957+
'200':
42958+
content:
42959+
text/markdown:
42960+
schema:
42961+
type: 'string'
42962+
description: 'Markdown document, readable without a key.'
42963+
security: []
42964+
summary: 'Agent setup guide for buying credits with a machine payment'
42965+
tags:
42966+
- 'Credits'
42967+
x-fern-ignore: true
42968+
x-hidden: true
42969+
x-speakeasy-ignore: true
42970+
/credits/purchases/SKILL.md:
42971+
get:
42972+
operationId: 'listCreditsPurchasesSKILL.md'
42973+
responses:
42974+
'200':
42975+
content:
42976+
text/markdown:
42977+
schema:
42978+
type: 'string'
42979+
description: 'Markdown document, readable without a key.'
42980+
security: []
42981+
summary: 'Agent skill for buying OpenRouter credits'
42982+
tags:
42983+
- 'Credits'
42984+
x-fern-ignore: true
42985+
x-hidden: true
42986+
x-speakeasy-ignore: true
4291442987
/datasets/app-rankings:
4291542988
get:
4291642989
description: "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter."

0 commit comments

Comments
 (0)