SubscriptionModel
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{organization_id}/agents/{id}/spark/subscriptions/models |
list |
Account model catalog |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
subscription_models, err := client.SubscriptionModel(nil).List(map[string]any{"agent_id": "example", "organization_id": "example", "profile_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(subscription_models)
Lua
Construct client as shown in the Lua setup, then call the operations:
local subscription_models, err = client:SubscriptionModel():list({ agent_id = "example", organization_id = "example", profile_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$subscription_models = $client->SubscriptionModel()->list(["agent_id" => "example", "organization_id" => "example", "profile_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
subscription_models = client.SubscriptionModel().list({"agent_id": "example", "organization_id": "example", "profile_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
subscription_models = client.SubscriptionModel.list({ "agent_id" => "example", "organization_id" => "example", "profile_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const subscription_models = await client.SubscriptionModel().list({ agent_id: "example", organization_id: "example", profile_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
default_reasoning |
string |
No | Default Reasoning |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
provider |
string |
Yes | Provider |
reasoning |
array |
No | Effort levels this plan model accepts. |
speeds |
array |
No | Speed modes advertised by this connected account and model. |
list
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/subscriptions/models
Operation ID: spark_subscriptions_models_api_v1_organization_persistent_agent.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
profile_id |
query |
string |
Yes |
Responses
200: Account model catalog
application/json
| Property | Type | Required | Description |
|---|---|---|---|
models |
array of object |
Yes | |
models[].default_reasoning |
string |
No | |
models[].id |
string |
Yes | |
models[].name |
string |
Yes | |
models[].provider |
enum: openai, anthropic, xai |
Yes | |
models[].reasoning |
array of string |
No | Effort levels this plan model accepts. |
models[].speeds |
array of enum: regular, fast, ultrafast |
No | Speed modes advertised by this connected account and model. Missing metadata enables Standard only. |