You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a209333
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+281Lines changed: 281 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10409,6 +10409,15 @@ components:
10409
10409
required:
10410
10410
- 'data'
10411
10411
type: 'object'
10412
+
CreateCreditPurchaseRequest:
10413
+
properties:
10414
+
credit_amount_usd:
10415
+
description: 'Credits to buy, in USD with at most two decimals. The platform fee is added on top and shown in the challenge and the receipt.'
10416
+
example: '25.00'
10417
+
type: 'string'
10418
+
required:
10419
+
- 'credit_amount_usd'
10420
+
type: 'object'
10412
10421
CreatedEvent:
10413
10422
description: 'Event emitted when a response is created'
10414
10423
example:
@@ -11291,6 +11300,52 @@ components:
11291
11300
required:
11292
11301
- 'data'
11293
11302
type: 'object'
11303
+
CreditPurchase:
11304
+
properties:
11305
+
created_at:
11306
+
type: 'string'
11307
+
credit_amount_usd:
11308
+
type: 'string'
11309
+
failure_reason:
11310
+
type:
11311
+
- 'string'
11312
+
- 'null'
11313
+
id:
11314
+
description: 'Purchase id, the Stripe PaymentIntent that owns the deposit address.'
11315
+
type: 'string'
11316
+
network:
11317
+
type: 'string'
11318
+
platform_fee_usd:
11319
+
type: 'string'
11320
+
protocol:
11321
+
type: 'string'
11322
+
status:
11323
+
enum:
11324
+
- 'awaiting_payment'
11325
+
- 'processing'
11326
+
- 'credited'
11327
+
- 'failed'
11328
+
type: 'string'
11329
+
total_charged_usd:
11330
+
type: 'string'
11331
+
required:
11332
+
- 'id'
11333
+
- 'status'
11334
+
- 'credit_amount_usd'
11335
+
- 'platform_fee_usd'
11336
+
- 'total_charged_usd'
11337
+
- 'protocol'
11338
+
- 'network'
11339
+
- 'failure_reason'
11340
+
- 'created_at'
11341
+
type: 'object'
11342
+
CreditPurchaseResponse:
11343
+
properties:
11344
+
data:
11345
+
$ref: '#/components/schemas/CreditPurchase'
11346
+
required:
11347
+
- 'data'
11348
+
type: 'object'
11294
11349
CustomTool:
11295
11350
description: 'Custom tool configuration'
11296
11351
example:
@@ -42627,6 +42682,232 @@ paths:
42627
42682
x-fern-ignore: true
42628
42683
x-speakeasy-ignore: true
42629
42684
x-speakeasy-name-override: 'createCoinbaseCharge'
42685
+
/credits/purchases:
42686
+
post:
42687
+
description: 'Starts an agent credit purchase paid with a Machine Payments Protocol (MPP) credential on Tempo. The first call answers `402` with a `WWW-Authenticate: Payment ...` challenge; retry the same request, same `Idempotency-Key`, with the signed credential in `Payment-Authorization: Payment ...` (or in `Authorization: Payment ...` when the management key is sent as `X-Api-Key`). A paid request answers `202`: the transfer was broadcast and Stripe is still screening the payment, so credits arrive asynchronously. Poll the URL in the `Location` header, `GET /api/v1/credits/purchases/{id}`, until `status` is `credited` or `failed`.'
42688
+
operationId: 'createCreditsPurchases'
42689
+
parameters:
42690
+
- description: 'Identifies the purchase. Send the same value on the unpaid request and on the paid retry; use a new value for a new purchase.'
42691
+
in: 'header'
42692
+
name: 'idempotency-key'
42693
+
required: true
42694
+
schema:
42695
+
description: 'Identifies the purchase. Send the same value on the unpaid request and on the paid retry; use a new value for a new purchase.'
description: 'Service Unavailable - Service temporarily unavailable'
42807
+
security:
42808
+
- bearerAuth: []
42809
+
summary: 'Buy credits with a machine payment'
42810
+
tags:
42811
+
- 'Credits'
42812
+
x-fern-ignore: true
42813
+
x-hidden: true
42814
+
x-speakeasy-ignore: true
42815
+
/credits/purchases/{id}:
42816
+
get:
42817
+
description: 'Returns one agent credit purchase of the calling account, read from its Stripe PaymentIntent. Poll this after a `202` until `status` is `credited` or `failed`.'
description: 'Service Unavailable - Service temporarily unavailable'
42903
+
security:
42904
+
- bearerAuth: []
42905
+
summary: 'Get a credit purchase'
42906
+
tags:
42907
+
- 'Credits'
42908
+
x-fern-ignore: true
42909
+
x-hidden: true
42910
+
x-speakeasy-ignore: true
42630
42911
/datasets/app-rankings:
42631
42912
get:
42632
42913
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