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 87b2917
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+290Lines changed: 290 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10504,6 +10504,15 @@ components:
10504
10504
required:
10505
10505
- 'data'
10506
10506
type: 'object'
10507
+
CreateCreditPurchaseRequest:
10508
+
properties:
10509
+
credit_amount_usd:
10510
+
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.'
10511
+
example: '25.00'
10512
+
type: 'string'
10513
+
required:
10514
+
- 'credit_amount_usd'
10515
+
type: 'object'
10507
10516
CreatedEvent:
10508
10517
description: 'Event emitted when a response is created'
10509
10518
example:
@@ -11390,6 +11399,53 @@ components:
11390
11399
required:
11391
11400
- 'data'
11392
11401
type: 'object'
11402
+
CreditPurchase:
11403
+
properties:
11404
+
created_at:
11405
+
type: 'string'
11406
+
credit_amount_usd:
11407
+
type: 'string'
11408
+
failure_reason:
11409
+
type:
11410
+
- 'string'
11411
+
- 'null'
11412
+
id:
11413
+
description: 'Purchase id, the Stripe PaymentIntent that owns the deposit address.'
11414
+
type: 'string'
11415
+
network:
11416
+
type: 'string'
11417
+
platform_fee_usd:
11418
+
type: 'string'
11419
+
protocol:
11420
+
type: 'string'
11421
+
status:
11422
+
enum:
11423
+
- 'awaiting_payment'
11424
+
- 'processing'
11425
+
- 'credited'
11426
+
- 'failed'
11427
+
type: 'string'
11428
+
x-speakeasy-unknown-values: allow
11429
+
total_charged_usd:
11430
+
type: 'string'
11431
+
required:
11432
+
- 'id'
11433
+
- 'status'
11434
+
- 'credit_amount_usd'
11435
+
- 'platform_fee_usd'
11436
+
- 'total_charged_usd'
11437
+
- 'protocol'
11438
+
- 'network'
11439
+
- 'failure_reason'
11440
+
- 'created_at'
11441
+
type: 'object'
11442
+
CreditPurchaseResponse:
11443
+
properties:
11444
+
data:
11445
+
$ref: '#/components/schemas/CreditPurchase'
11446
+
required:
11447
+
- 'data'
11448
+
type: 'object'
11393
11449
CustomTool:
11394
11450
description: 'Custom tool configuration'
11395
11451
example:
@@ -43047,6 +43103,240 @@ paths:
43047
43103
- $ref: "#/components/parameters/AppIdentifier"
43048
43104
- $ref: "#/components/parameters/AppDisplayName"
43049
43105
- $ref: "#/components/parameters/AppCategories"
43106
+
/credits/purchases:
43107
+
post:
43108
+
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`.'
43109
+
operationId: 'createCreditsPurchases'
43110
+
parameters:
43111
+
- 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.'
43112
+
in: 'header'
43113
+
name: 'idempotency-key'
43114
+
required: true
43115
+
schema:
43116
+
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'
43228
+
security:
43229
+
- bearerAuth: []
43230
+
summary: 'Buy credits with a machine payment'
43231
+
tags:
43232
+
- 'Credits'
43233
+
x-fern-ignore: true
43234
+
x-hidden: true
43235
+
x-speakeasy-ignore: true
43236
+
parameters:
43237
+
- $ref: "#/components/parameters/AppIdentifier"
43238
+
- $ref: "#/components/parameters/AppDisplayName"
43239
+
- $ref: "#/components/parameters/AppCategories"
43240
+
/credits/purchases/{id}:
43241
+
get:
43242
+
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'
43328
+
security:
43329
+
- bearerAuth: []
43330
+
summary: 'Get a credit purchase'
43331
+
tags:
43332
+
- 'Credits'
43333
+
x-fern-ignore: true
43334
+
x-hidden: true
43335
+
x-speakeasy-ignore: true
43336
+
parameters:
43337
+
- $ref: "#/components/parameters/AppIdentifier"
43338
+
- $ref: "#/components/parameters/AppDisplayName"
43339
+
- $ref: "#/components/parameters/AppCategories"
43050
43340
/datasets/app-rankings:
43051
43341
get:
43052
43342
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